1
0
Timothy Jaeryang Baek 2 долоо хоног өмнө
parent
commit
c07086401e

+ 4 - 0
src/lib/components/admin/Users/UserList/UserChatsModal.svelte

@@ -43,6 +43,10 @@
 	let searchDebounceTimeout;
 
 	const searchHandler = async () => {
+		if (!show) {
+			return;
+		}
+
 		if (searchDebounceTimeout) {
 			clearTimeout(searchDebounceTimeout);
 		}

+ 4 - 0
src/lib/components/layout/ArchivedChatsModal.svelte

@@ -39,6 +39,10 @@
 	}
 
 	const searchHandler = async () => {
+		if (!show) {
+			return;
+		}
+
 		if (searchDebounceTimeout) {
 			clearTimeout(searchDebounceTimeout);
 		}

+ 4 - 0
src/lib/components/layout/SearchModal.svelte

@@ -91,6 +91,10 @@
 	};
 
 	const searchHandler = async () => {
+		if (!show) {
+			return;
+		}
+
 		if (searchDebounceTimeout) {
 			clearTimeout(searchDebounceTimeout);
 		}