@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.
Files changed (2) hide show
  1. package/hooks/useFile.js +1 -1
  2. 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, ['values', props.input.name.replace(/Ids?$/, '')]); });
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) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@steroidsjs/core",
3
- "version": "2.2.45",
3
+ "version": "2.2.46",
4
4
  "description": "",
5
5
  "author": "Vladimir Kozhin <hello@kozhindev.com>",
6
6
  "repository": {