1
0
Fork 0
mirror of synced 2024-09-20 03:08:18 +12:00

Navigate to group upon creation

This commit is contained in:
Andrew Kingston 2022-08-04 11:31:06 +01:00
parent 24fdef92b4
commit 19b8271c1b
2 changed files with 3 additions and 1 deletions

View file

@ -59,7 +59,8 @@
async function saveGroup(group) {
try {
await groups.actions.save(group)
group = await groups.actions.save(group)
$goto(`./${group._id}`)
notifications.success(`User group created successfully`)
} catch (error) {
notifications.error(`Failed to save user group`)

View file

@ -28,6 +28,7 @@ export function createGroupsStore() {
}
return state
})
return group
},
delete: async group => {