kamotive_ui 1.2.17 → 1.2.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -127,6 +127,11 @@ export const FileLoader = ({ maxFileSize = 2, maxFileCount = 10, acceptedFormats
|
|
|
127
127
|
}
|
|
128
128
|
return formats.join(', ');
|
|
129
129
|
};
|
|
130
|
+
useEffect(() => {
|
|
131
|
+
if (addedFiles.length === 0) {
|
|
132
|
+
setAddedFilesFormatted([]);
|
|
133
|
+
}
|
|
134
|
+
}, [addedFiles]);
|
|
130
135
|
useEffect(() => {
|
|
131
136
|
if (loadingFilesNames.length === 0 && isLoadingFiles) {
|
|
132
137
|
setIsLoadingFiles(false);
|