This commit is contained in:
Timothy Jaeryang Baek
2026-01-01 14:10:11 +04:00
parent 89565c58c6
commit d3ee3fd23e
4 changed files with 28 additions and 20 deletions
@@ -45,7 +45,9 @@
// Check folder max file count limit
const maxFileCount = $config?.features?.folder_max_file_count ?? null;
if (maxFileCount !== null && (data?.files ?? []).length > maxFileCount) {
toast.error($i18n.t('Maximum number of files per folder is {{max}}.', { max: maxFileCount }));
toast.error(
$i18n.t('Maximum number of files per folder is {{max}}.', { max: maxFileCount ?? 0 })
);
loading = false;
return;
}