refac: disable duplicate attachments

This commit is contained in:
Timothy Jaeryang Baek 2025-01-22 11:28:54 -08:00
parent c6660f1d7c
commit b641756020

View File

@ -78,6 +78,10 @@
}}
on:select={(e) => {
console.log(e);
if (files.find((f) => f.id === e.detail.id)) {
return;
}
files = [
...files,
{