mirror of
https://github.com/coracle-social/flotilla.git
synced 2025-12-10 02:47:06 +00:00
Fix modal flash
This commit is contained in:
@@ -10,15 +10,9 @@
|
||||
}
|
||||
}
|
||||
|
||||
let modal: any = $state.raw()
|
||||
const hash = $derived($page.url.hash.slice(1))
|
||||
const hashIsValid = $derived(Boolean($modals[hash]))
|
||||
|
||||
$effect(() => {
|
||||
if ($modals[hash]) {
|
||||
modal = $modals[hash]
|
||||
}
|
||||
})
|
||||
const modal = $derived($modals[hash])
|
||||
</script>
|
||||
|
||||
<svelte:window onkeydown={onKeyDown} />
|
||||
|
||||
Reference in New Issue
Block a user