Skip to content

Commit a59f531

Browse files
authored
Fix unresponsive page after deleting all conversations (#1004)
Fix #937
1 parent fe072ba commit a59f531

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/routes/settings/(nav)/+page.svelte

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
<script lang="ts">
2-
import { createEventDispatcher } from "svelte";
3-
42
import Modal from "$lib/components/Modal.svelte";
53
import CarbonClose from "~icons/carbon/close";
64
import CarbonTrashCan from "~icons/carbon/trash-can";
@@ -15,8 +13,6 @@
1513
1614
let isConfirmingDeletion = false;
1715
18-
const dispatch = createEventDispatcher<{ close: void }>();
19-
2016
let settings = useSettingsStore();
2117
</script>
2218

@@ -71,7 +67,7 @@
7167
<Modal on:close={() => (isConfirmingDeletion = false)}>
7268
<form
7369
use:enhance={() => {
74-
dispatch("close");
70+
isConfirmingDeletion = false;
7571
}}
7672
method="post"
7773
action="{base}/conversations?/delete"

0 commit comments

Comments
 (0)