@fixefy/fixefy-ui-components 0.2.3 → 0.2.4

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.
@@ -184,7 +184,7 @@ const FxAsyncDropdown = /*#__PURE__*/ _react.default.forwardRef((props, parentRe
184
184
  if (data && !isLastPage && prevPage < page) {
185
185
  //raaya todo: this is too messy clean it
186
186
  const newOptions = variables.method_name == 'workspace' ? data.workspace[search_path === null || search_path === void 0 ? void 0 : search_path.split('.')[1]] : data[method_name];
187
- if (newOptions && ((newOptions === null || newOptions === void 0 ? void 0 : newOptions.length) === 0 || (newOptions === null || newOptions === void 0 ? void 0 : newOptions.length) < pageSize)) {
187
+ if (newOptions && newOptions.length && (newOptions.length === 0 || newOptions.length < pageSize)) {
188
188
  setIsLastPage(true);
189
189
  }
190
190
  if (reason === 'searched' || reason === 'init') {
@@ -593,7 +593,7 @@ const FxAsyncDropdown = /*#__PURE__*/ _react.default.forwardRef((props, parentRe
593
593
  })
594
594
  ]
595
595
  }),
596
- options && (options === null || options === void 0 ? void 0 : options.length) > 0 && !disabled ? /*#__PURE__*/ (0, _jsxruntime.jsxs)(_dropdownstyles.StyledListBox, {
596
+ options && options.length && options.length > 0 && !disabled ? /*#__PURE__*/ (0, _jsxruntime.jsxs)(_dropdownstyles.StyledListBox, {
597
597
  sx: _object_spread_props(_object_spread({}, (_props_styles = props.styles) === null || _props_styles === void 0 ? void 0 : _props_styles.menuSx), {
598
598
  '&::-webkit-scrollbar': {
599
599
  width: '8px',
package/package.json CHANGED
@@ -70,5 +70,5 @@
70
70
  "require": "./dist/index.js"
71
71
  }
72
72
  },
73
- "version": "0.2.3"
73
+ "version": "0.2.4"
74
74
  }