@kanda-libs/ks-component-ts 0.2.251 → 0.2.253
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.
- package/dist/index.d.ts +9954 -9954
- package/dist/index.esm.js +3 -3
- package/dist/index.esm.js.map +3 -3
- package/package.json +1 -1
- package/src/field/components/FileInput/helpers.ts +2 -1
- package/src/generated/widget/index.tsx +43656 -43656
package/package.json
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { lookup } from "mime-types";
|
|
2
2
|
import { FileCardFile } from "~/field/components/FileInput/FileCard/types";
|
|
3
|
+
import { StringIndexedObject } from "~/types";
|
|
3
4
|
|
|
4
5
|
/**
|
|
5
6
|
* Normalizes initial value
|
|
@@ -8,7 +9,7 @@ import { FileCardFile } from "~/field/components/FileInput/FileCard/types";
|
|
|
8
9
|
* @returns initial value
|
|
9
10
|
*/
|
|
10
11
|
export const normalizeFilesValue = (value: File, maxFiles: number): File[] => {
|
|
11
|
-
if (!value) {
|
|
12
|
+
if (!value || !(value as StringIndexedObject).content) {
|
|
12
13
|
return [];
|
|
13
14
|
}
|
|
14
15
|
|