mirror of
https://github.com/open-webui/open-webui.git
synced 2026-10-15 04:18:18 +00:00
refac
This commit is contained in:
parent
1045d74c75
commit
edb16ed946
1 changed files with 1 additions and 7 deletions
|
|
@ -767,12 +767,7 @@
|
|||
const target = { chatId, input: chatInputElement };
|
||||
try {
|
||||
ComparisonModal = (await import('../common/DiffEditorModal.svelte')).default;
|
||||
if (
|
||||
!target.input ||
|
||||
target.chatId !== chatId ||
|
||||
target.input !== chatInputElement
|
||||
)
|
||||
return;
|
||||
if (!target.input || target.chatId !== chatId || target.input !== chatInputElement) return;
|
||||
comparisonTarget = { chatId, input: target.input, content: prompt };
|
||||
showComparison = true;
|
||||
} catch {
|
||||
|
|
@ -783,7 +778,6 @@
|
|||
};
|
||||
|
||||
const applyComparisonToPrompt = (text: string) => {
|
||||
|
||||
if (
|
||||
!chatInputElement ||
|
||||
comparisonTarget?.chatId !== chatId ||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue