"git@developer.sourcefind.cn:chenpangpang/open-webui.git" did not exist on "6bad71adcaf32187e790bc2d96599d67eb4050b8"
Commit d4db3dd5 authored by Timothy J. Baek's avatar Timothy J. Baek
Browse files

fix: tag delete issue

parent fa3c7bc2
...@@ -3,10 +3,11 @@ ...@@ -3,10 +3,11 @@
addTagById, addTagById,
deleteTagById, deleteTagById,
getAllChatTags, getAllChatTags,
getChatList,
getTagsById, getTagsById,
updateChatById updateChatById
} from '$lib/apis/chats'; } from '$lib/apis/chats';
import { tags as _tags } from '$lib/stores'; import { tags as _tags, chats } from '$lib/stores';
import { onMount } from 'svelte'; import { onMount } from 'svelte';
import Tags from '../common/Tags.svelte'; import Tags from '../common/Tags.svelte';
...@@ -40,6 +41,10 @@ ...@@ -40,6 +41,10 @@
}); });
_tags.set(await getAllChatTags(localStorage.token)); _tags.set(await getAllChatTags(localStorage.token));
if (!$_tags.includes(tagName)) {
await chats.set(await getChatList(localStorage.token));
}
}; };
onMount(async () => { onMount(async () => {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment