@steroidsjs/core 2.2.45 → 2.2.46
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/hooks/useFile.js +1 -1
- package/package.json +1 -1
package/hooks/useFile.js
CHANGED
|
@@ -50,7 +50,7 @@ function useFile(props) {
|
|
|
50
50
|
var initialFiles = props.initialFiles;
|
|
51
51
|
if (!initialFiles) {
|
|
52
52
|
// Find in form values
|
|
53
|
-
initialFiles = form.formSelector(function (state) { return get_1["default"](state,
|
|
53
|
+
initialFiles = form.formSelector(function (state) { return get_1["default"](state, 'values.' + props.input.name.replace(/Ids?$/, '')); });
|
|
54
54
|
}
|
|
55
55
|
react_1.useEffect(function () {
|
|
56
56
|
if (initialFiles) {
|