@fixefy/fixefy-ui-components 0.2.57 → 0.2.59
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.
|
@@ -133,7 +133,7 @@ const FxAsyncDropdown = /*#__PURE__*/ _react.default.forwardRef((props)=>{
|
|
|
133
133
|
const [prevPage, setPrevPage] = (0, _react.useState)(0);
|
|
134
134
|
const pageSize = 20;
|
|
135
135
|
const { method_name } = variables;
|
|
136
|
-
const { where } = fetcher.queryOptions.variables;
|
|
136
|
+
const { where, sort } = fetcher.queryOptions.variables;
|
|
137
137
|
const ws = (0, _nookies.parseCookies)().ws;
|
|
138
138
|
const isLocal = fetcher.query.loc;
|
|
139
139
|
const getWhere = ()=>{
|
|
@@ -158,7 +158,8 @@ const FxAsyncDropdown = /*#__PURE__*/ _react.default.forwardRef((props)=>{
|
|
|
158
158
|
variables: {
|
|
159
159
|
where: getWhere(),
|
|
160
160
|
skip: page * pageSize - pageSize,
|
|
161
|
-
limit: pageSize
|
|
161
|
+
limit: pageSize,
|
|
162
|
+
sort: sort || {}
|
|
162
163
|
}
|
|
163
164
|
}));
|
|
164
165
|
(0, _react.useEffect)(()=>{
|
package/package.json
CHANGED