@bluemarble/bm-components 1.11.4 → 1.12.0
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.
- package/dist/index.d.mts +0 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.js +3 -8
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -8
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -4094,7 +4094,7 @@ var ApiHelper = class _ApiHelper {
|
|
|
4094
4094
|
return __async(this, null, function* () {
|
|
4095
4095
|
});
|
|
4096
4096
|
}
|
|
4097
|
-
onError(req, res) {
|
|
4097
|
+
onError(req, res, error) {
|
|
4098
4098
|
return __async(this, null, function* () {
|
|
4099
4099
|
});
|
|
4100
4100
|
}
|
|
@@ -4135,9 +4135,9 @@ var ApiHelper = class _ApiHelper {
|
|
|
4135
4135
|
error: "Erro interno do servidor",
|
|
4136
4136
|
details: error
|
|
4137
4137
|
});
|
|
4138
|
-
return this.onError(req, res);
|
|
4138
|
+
return this.onError(req, res, error);
|
|
4139
4139
|
}
|
|
4140
|
-
this.onError(req, res);
|
|
4140
|
+
this.onError(req, res, error);
|
|
4141
4141
|
throw new Error(error);
|
|
4142
4142
|
} finally {
|
|
4143
4143
|
yield this.onFinally(req, res);
|
|
@@ -4788,7 +4788,6 @@ function useGrid({
|
|
|
4788
4788
|
);
|
|
4789
4789
|
const [currentPage, setCurrentPage] = useState7(defaultCurrentPage || 0);
|
|
4790
4790
|
const [rowsPerPage, setRowsPerPage] = useState7(rowsPerPageOptions[0]);
|
|
4791
|
-
const [updatedTimes, setUpdatedTimes] = useState7(0);
|
|
4792
4791
|
const toggleSortedDirection = useCallback5(
|
|
4793
4792
|
(direction) => {
|
|
4794
4793
|
if (direction === "asc")
|
|
@@ -4885,12 +4884,8 @@ function useGrid({
|
|
|
4885
4884
|
if (externalDefaultData)
|
|
4886
4885
|
setDefaultData(externalDefaultData);
|
|
4887
4886
|
}, [externalDefaultData]);
|
|
4888
|
-
useEffect5(() => {
|
|
4889
|
-
setUpdatedTimes((prev) => prev + 1);
|
|
4890
|
-
}, [displayData]);
|
|
4891
4887
|
return {
|
|
4892
4888
|
data: displayData,
|
|
4893
|
-
updatedTimes,
|
|
4894
4889
|
set,
|
|
4895
4890
|
onSortBy,
|
|
4896
4891
|
sortedBy,
|