Timothy Jaeryang Baek 4 tháng trước cách đây
mục cha
commit
65d997a6c5
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  1. 1 0
      src/lib/components/admin/Settings/Interface.svelte

+ 1 - 0
src/lib/components/admin/Settings/Interface.svelte

@@ -45,6 +45,7 @@
 	const updateInterfaceHandler = async () => {
 		taskConfig = await updateTaskConfig(localStorage.token, taskConfig);
 
+		promptSuggestions = promptSuggestions.filter((p) => p.content !== '');
 		promptSuggestions = await setDefaultPromptSuggestions(localStorage.token, promptSuggestions);
 		await updateBanners();