Francois Lancelot commited on
Commit
a59f531
1 Parent(s): fe072ba

Fix unresponsive page after deleting all conversations (#1004)

Browse files
src/routes/settings/(nav)/+page.svelte CHANGED
@@ -1,6 +1,4 @@
1
  <script lang="ts">
2
- import { createEventDispatcher } from "svelte";
3
-
4
  import Modal from "$lib/components/Modal.svelte";
5
  import CarbonClose from "~icons/carbon/close";
6
  import CarbonTrashCan from "~icons/carbon/trash-can";
@@ -15,8 +13,6 @@
15
 
16
  let isConfirmingDeletion = false;
17
 
18
- const dispatch = createEventDispatcher<{ close: void }>();
19
-
20
  let settings = useSettingsStore();
21
  </script>
22
 
@@ -71,7 +67,7 @@
71
  <Modal on:close={() => (isConfirmingDeletion = false)}>
72
  <form
73
  use:enhance={() => {
74
- dispatch("close");
75
  }}
76
  method="post"
77
  action="{base}/conversations?/delete"
 
1
  <script lang="ts">
 
 
2
  import Modal from "$lib/components/Modal.svelte";
3
  import CarbonClose from "~icons/carbon/close";
4
  import CarbonTrashCan from "~icons/carbon/trash-can";
 
13
 
14
  let isConfirmingDeletion = false;
15
 
 
 
16
  let settings = useSettingsStore();
17
  </script>
18
 
 
67
  <Modal on:close={() => (isConfirmingDeletion = false)}>
68
  <form
69
  use:enhance={() => {
70
+ isConfirmingDeletion = false;
71
  }}
72
  method="post"
73
  action="{base}/conversations?/delete"