@fixefy/fixefy-ui-components 0.2.4 → 0.2.6
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
|
|
187
|
+
if (newOptions && ((newOptions === null || newOptions === void 0 ? void 0 : newOptions.length) === 0 || (newOptions === null || newOptions === void 0 ? void 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
|
|
596
|
+
options && (options === null || options === void 0 ? void 0 : 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