Timothy Jaeryang Baek 4 月之前
父节点
当前提交
65d997a6c5
共有 1 个文件被更改,包括 1 次插入0 次删除
  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 () => {
 	const updateInterfaceHandler = async () => {
 		taskConfig = await updateTaskConfig(localStorage.token, taskConfig);
 		taskConfig = await updateTaskConfig(localStorage.token, taskConfig);
 
 
+		promptSuggestions = promptSuggestions.filter((p) => p.content !== '');
 		promptSuggestions = await setDefaultPromptSuggestions(localStorage.token, promptSuggestions);
 		promptSuggestions = await setDefaultPromptSuggestions(localStorage.token, promptSuggestions);
 		await updateBanners();
 		await updateBanners();