mirror of
https://github.com/open-webui/open-webui.git
synced 2026-11-23 14:10:42 -05:00
refac
This commit is contained in:
1 parent
d67c707027
commit
da841548da
1 file changed
+2
-1
@@ -1,4 +1,5 @@
|
||||
import { browser } from '$app/environment';
|
||||
import { v4 as uuidv4 } from 'uuid';
|
||||
import { writable } from 'svelte/store';
|
||||
import { getChatView, updateChatView } from '$lib/apis/chats/view';
|
||||
import { terminalRequest, type TerminalConnection } from '$lib/apis/terminal';
|
||||
@@ -83,7 +84,7 @@ export function chatViewEntry(userId: string, chatId: string | null, temporary =
|
||||
const existing = chatId && entries.get(key(userId, chatId));
|
||||
if (existing) return existing;
|
||||
const entry: Entry = {
|
||||
instanceId: crypto.randomUUID(),
|
||||
instanceId: uuidv4(),
|
||||
userId,
|
||||
chatId,
|
||||
state: { schemaVersion: 1, selectedTerminalId: null, panels: emptyTabs() },
|
||||
|
||||
Reference in new issue
Block a user