FilesSelector Fixed file name display

This commit is contained in:
Akmal Isomadinov 2023-12-05 14:02:42 +05:00
parent 4aaff86146
commit 937a2352ce

View File

@ -90,10 +90,11 @@ export const convertFilesToItems = (
} = file;
const icon = getIcon(32, fileExst || DEFAULT_FILE_EXTS);
const label = title.replace(fileExst, "") || fileExst;
return {
id,
label: title.replace(fileExst, ""),
label,
title,
icon,
security,