Fix URL update after creating a new layout
This commit is contained in:
parent
aa71e95597
commit
449509a203
|
@ -8,7 +8,7 @@
|
||||||
|
|
||||||
async function save() {
|
async function save() {
|
||||||
try {
|
try {
|
||||||
const layout = store.actions.layouts.save({ name })
|
const layout = await store.actions.layouts.save({ name })
|
||||||
$goto(`./${layout._id}`)
|
$goto(`./${layout._id}`)
|
||||||
notifier.success(`Layout ${name} created successfully`)
|
notifier.success(`Layout ${name} created successfully`)
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
|
|
Loading…
Reference in New Issue