chore: format

This commit is contained in:
Timothy J. Baek
2024-08-27 17:07:47 +02:00
parent 6a21a77ee9
commit 35fa278b37
42 changed files with 287 additions and 257 deletions

View File

@@ -552,17 +552,6 @@
maxCount: $config?.file?.max_count
})
);
} else if (
($config?.file?.max_size ?? null) !== null &&
[...files, ...chatFiles].some(
(file) => file.size > ($config?.file?.max_size ?? 0) * 1024 * 1024
)
) {
toast.error(
$i18n.t(`File size should not exceed {{maxSize}} MB.`, {
maxSize: $config?.file?.max_size
})
);
} else {
// Reset chat input textarea
const chatTextAreaElement = document.getElementById('chat-textarea');