@m4l/components 0.0.43 → 0.0.46

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.
@@ -126,13 +126,13 @@ function DetailFormatter(props) {
126
126
  });
127
127
  }
128
128
  function ObjectLogs(props) {
129
- const {
130
- getLabel
131
- } = useModuleDictionary();
132
129
  const {
133
130
  resource_id,
134
131
  object_id
135
132
  } = props;
133
+ const {
134
+ getLabel
135
+ } = useModuleDictionary();
136
136
  const [queryParams, setQueryParams] = useState({
137
137
  resource_id,
138
138
  object_id
@@ -193,15 +193,15 @@ function ObjectLogs(props) {
193
193
  object_id
194
194
  }));
195
195
  }, [object_id]);
196
- const onChangeFilter = useCallback((_initFilters, rawFilters) => {
197
- console.log("onChangeFilter", object_id);
198
- setQueryParams({
199
- resource_id,
200
- object_id,
196
+ const onChangeFilter = (_initFilters, rawFilters) => {
197
+ console.log("onChangeFilter*", object_id);
198
+ setQueryParams((oldParms) => ({
199
+ ...oldParms,
201
200
  f: rawFilters
202
- });
201
+ }));
203
202
  Refresh();
204
- }, [object_id]);
203
+ };
204
+ console.log("Render ObjectLogs", object_id, queryParams);
205
205
  return /* @__PURE__ */ jsxs(Container$1, {
206
206
  children: [/* @__PURE__ */ jsx(Actions, {
207
207
  id: "objectLogsActions",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@m4l/components",
3
3
  "private": false,
4
- "version": "0.0.43",
4
+ "version": "0.0.46",
5
5
  "license": "UNLICENSED",
6
6
  "scripts": {
7
7
  "dev": "vite",