@m4l/components 0.0.41 → 0.0.42
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.
|
@@ -178,14 +178,19 @@ function ObjectLogs(props) {
|
|
|
178
178
|
rows,
|
|
179
179
|
onPageChange,
|
|
180
180
|
onRowsPerPageChange,
|
|
181
|
-
clearRows
|
|
181
|
+
clearRows,
|
|
182
|
+
Refresh
|
|
182
183
|
} = usePaginate({
|
|
183
184
|
endPoint: "logs",
|
|
184
|
-
|
|
185
|
+
fireOnChangeParms: false,
|
|
185
186
|
queryParams
|
|
186
187
|
});
|
|
187
188
|
useEffect(() => {
|
|
188
189
|
clearRows();
|
|
190
|
+
setQueryParams((oldParms) => ({
|
|
191
|
+
...oldParms,
|
|
192
|
+
object_id
|
|
193
|
+
}));
|
|
189
194
|
}, [object_id]);
|
|
190
195
|
const onChangeFilter = useCallback((_initFilters, rawFilters) => {
|
|
191
196
|
setQueryParams({
|
|
@@ -193,6 +198,7 @@ function ObjectLogs(props) {
|
|
|
193
198
|
object_id,
|
|
194
199
|
f: rawFilters
|
|
195
200
|
});
|
|
201
|
+
Refresh();
|
|
196
202
|
}, [object_id]);
|
|
197
203
|
return /* @__PURE__ */ jsxs(Container$1, {
|
|
198
204
|
children: [/* @__PURE__ */ jsx(Actions, {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@m4l/components",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.42",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"dev": "vite",
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"format": "npm run prettier:fix && npm run lint:fix"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@m4l/graphics": "^0.0.
|
|
17
|
+
"@m4l/graphics": "^0.0.31",
|
|
18
18
|
"react": "^17.0.0 || 18.x",
|
|
19
19
|
"react-dom": "^18.0.0",
|
|
20
20
|
"react-draggable": "^4.4.5"
|