This commit is contained in:
Timothy Jaeryang Baek
2026-01-09 01:47:51 +04:00
parent 8e7ebdbf63
commit ef9cd0e0ad
2 changed files with 3 additions and 5 deletions

View File

@@ -43,8 +43,8 @@
}
// Check folder max file count limit
const maxFileCount = $config?.features?.folder_max_file_count ?? null;
if (maxFileCount !== null && (data?.files ?? []).length > maxFileCount) {
const maxFileCount = $config?.features?.folder_max_file_count ?? '';
if (maxFileCount && (data?.files ?? []).length > maxFileCount) {
toast.error(
$i18n.t('Maximum number of files per folder is {{max}}.', { max: maxFileCount ?? 0 })
);