react-crud-mobile 1.3.245 → 1.3.246

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.
@@ -1815,17 +1815,18 @@ function UIElement(props) {
1815
1815
  var ctx = useContext(CrudContext);
1816
1816
  var theme = Utils.nvl(props.theme, ctx == null ? void 0 : ctx.theme);
1817
1817
  var crud = Utils.nvl(props.crud, ctx == null ? void 0 : ctx.crud);
1818
- var scope = ScopeUtils.create(_extends({
1819
- crud: crud
1820
- }, props, {
1821
- theme: theme
1822
- }));
1823
- var _useState = useState(0),
1824
- index = _useState[0],
1825
- setIndex = _useState[1];
1826
- var _useState2 = useState(null),
1827
- error = _useState2[0],
1828
- setError = _useState2[1];
1818
+ var _useState = useState(ScopeUtils.create(_extends({
1819
+ crud: crud
1820
+ }, props, {
1821
+ theme: theme
1822
+ }))),
1823
+ scope = _useState[0];
1824
+ var _useState2 = useState(0),
1825
+ index = _useState2[0],
1826
+ setIndex = _useState2[1];
1827
+ var _useState3 = useState(null),
1828
+ error = _useState3[0],
1829
+ setError = _useState3[1];
1829
1830
  scope.compile(props);
1830
1831
  crud = scope.crud;
1831
1832
  var options = scope.getOptions();