mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-14 13:25:20 +00:00
refac: disable duplicate attachments
This commit is contained in:
parent
c6660f1d7c
commit
b641756020
1 changed files with 4 additions and 0 deletions
|
|
@ -78,6 +78,10 @@
|
|||
}}
|
||||
on:select={(e) => {
|
||||
console.log(e);
|
||||
if (files.find((f) => f.id === e.detail.id)) {
|
||||
return;
|
||||
}
|
||||
|
||||
files = [
|
||||
...files,
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue