edit-hotfix
This commit is contained in:
parent
60664581bd
commit
4a55271a79
|
@ -48,14 +48,18 @@ export const EditPage = () => {
|
||||||
|
|
||||||
createEffect(
|
createEffect(
|
||||||
on(
|
on(
|
||||||
page,
|
() => page(),
|
||||||
(p) => {
|
(p) => {
|
||||||
|
if (p?.path) {
|
||||||
|
console.debug(p?.path)
|
||||||
const shoutId = p?.path.split('/').pop()
|
const shoutId = p?.path.split('/').pop()
|
||||||
const shoutIdFromUrl = Number.parseInt(shoutId ?? '0', 10)
|
const shoutIdFromUrl = Number.parseInt(shoutId ?? '0', 10)
|
||||||
console.debug(`editing shout ${shoutIdFromUrl}`)
|
console.debug(`editing shout ${shoutIdFromUrl}`)
|
||||||
if (shoutIdFromUrl) setShoutId(shoutIdFromUrl)
|
if (shoutIdFromUrl) {
|
||||||
|
setShoutId(shoutIdFromUrl)
|
||||||
|
}
|
||||||
|
}
|
||||||
},
|
},
|
||||||
{ defer: true },
|
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -70,6 +74,7 @@ export const EditPage = () => {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}),
|
}),
|
||||||
|
{ defer: true },
|
||||||
)
|
)
|
||||||
|
|
||||||
const title = createMemo(() => {
|
const title = createMemo(() => {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user