mirror of
https://github.com/open-webui/open-webui
synced 2025-02-06 21:19:57 +00:00
fix: tag delete issue
This commit is contained in:
parent
fa3c7bc218
commit
d4db3dd593
@ -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 @@
|
|||||||
});
|
});
|
||||||
|
|
||||||
_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 () => {
|
||||||
|
Loading…
Reference in New Issue
Block a user