misc: fix community textbox

This commit is contained in:
Xyphyn committed 2023-09-15 14:52:11 -07:00
1 parent 919b2c1c99
commit 25c440516a
3 files changed
+15 -7

No files matched your search

+4 -2
View File
@@ -2,7 +2,7 @@
import { goto } from '$app/navigation'
import PostForm from '$lib/components/lemmy/post/PostForm.svelte'
import { profile } from '$lib/auth.js'
import { onMount } from 'svelte'
import { onDestroy, onMount } from 'svelte'
import { getSessionStorage, setSessionStorage } from '$lib/session.js'
export let data
@@ -17,7 +17,9 @@
| { id: number; name: string }
| undefined
setSessionStorage('lastSeenCommunity', undefined)
onDestroy(() => {
setSessionStorage('lastSeenCommunity', undefined)
})
let draft = getSessionStorage('postDraft') as any
</script>