mirror of
https://github.com/open-webui/open-webui.git
synced 2026-12-03 18:17:56 -05:00
refac
This commit is contained in:
1 parent
4fce9764f9
commit
9e90240c61
1 file changed
+1
-6
@@ -1492,12 +1492,7 @@
|
||||
);
|
||||
const existing = files.filter((file) => file.type === 'filesystem');
|
||||
const machineId = machineIdOf(existing[0]) ?? machineIdOf(attachments[0]);
|
||||
if (
|
||||
attachments.some(
|
||||
(file) =>
|
||||
machineIdOf(file) !== machineId || (file.session_id && file.session_id !== chatId)
|
||||
)
|
||||
)
|
||||
if (attachments.some((file) => machineIdOf(file) !== machineId))
|
||||
throw new Error($i18n.t('Attached files must belong to this chat and the same machine.'));
|
||||
const additions = attachments.filter(
|
||||
(file, index) =>
|
||||
|
||||
Reference in new issue
Block a user