@nolwenture/formik-jsonschema-form 1.0.0-beta.52 → 1.0.0-beta.54
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.
|
@@ -37,10 +37,8 @@ const FilesUploadField = (props) => {
|
|
|
37
37
|
}
|
|
38
38
|
},
|
|
39
39
|
});
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
return [...existingFiles, ...result];
|
|
43
|
-
});
|
|
40
|
+
const newValue = (Array.isArray(value) ? value : []).concat(result);
|
|
41
|
+
setFieldValue(name, newValue);
|
|
44
42
|
}
|
|
45
43
|
catch (error) {
|
|
46
44
|
console.error("File upload failed", error);
|
package/dist/cjs/common/index.js
CHANGED
|
@@ -17,3 +17,4 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
17
17
|
__exportStar(require("./types"), exports);
|
|
18
18
|
__exportStar(require("./constants"), exports);
|
|
19
19
|
__exportStar(require("./FileUploadContext"), exports);
|
|
20
|
+
__exportStar(require("./FilesUploadContext"), exports);
|
|
@@ -34,10 +34,8 @@ export const FilesUploadField = (props) => {
|
|
|
34
34
|
}
|
|
35
35
|
},
|
|
36
36
|
});
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
return [...existingFiles, ...result];
|
|
40
|
-
});
|
|
37
|
+
const newValue = (Array.isArray(value) ? value : []).concat(result);
|
|
38
|
+
setFieldValue(name, newValue);
|
|
41
39
|
}
|
|
42
40
|
catch (error) {
|
|
43
41
|
console.error("File upload failed", error);
|
package/dist/esm/common/index.js
CHANGED
package/package.json
CHANGED