mirror of
https://github.com/open-webui/open-webui
synced 2025-02-01 23:34:29 +00:00
refac: disable duplicate attachments
This commit is contained in:
parent
c6660f1d7c
commit
b641756020
@ -78,6 +78,10 @@
|
|||||||
}}
|
}}
|
||||||
on:select={(e) => {
|
on:select={(e) => {
|
||||||
console.log(e);
|
console.log(e);
|
||||||
|
if (files.find((f) => f.id === e.detail.id)) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
files = [
|
files = [
|
||||||
...files,
|
...files,
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user