@m4l/components 0.0.44 → 0.0.47
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.
|
@@ -885,7 +885,7 @@ function BaseProvider(props) {
|
|
|
885
885
|
autoClose: 1e4
|
|
886
886
|
});
|
|
887
887
|
}
|
|
888
|
-
}, [isValid, applyedFilters]);
|
|
888
|
+
}, [isValid, applyedFilters, onChangeFilter]);
|
|
889
889
|
useEffect(() => {
|
|
890
890
|
const NoValid = applyedFilters.findIndex((f) => !f.isSetted) > -1;
|
|
891
891
|
if (NoValid) {
|
|
@@ -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
|
|
@@ -186,22 +186,19 @@ function ObjectLogs(props) {
|
|
|
186
186
|
queryParams
|
|
187
187
|
});
|
|
188
188
|
useEffect(() => {
|
|
189
|
-
console.log("useEffect ObjectLogs", object_id);
|
|
190
189
|
clearRows();
|
|
191
190
|
setQueryParams((oldParms) => ({
|
|
192
191
|
...oldParms,
|
|
193
192
|
object_id
|
|
194
193
|
}));
|
|
195
194
|
}, [object_id]);
|
|
196
|
-
const onChangeFilter =
|
|
197
|
-
console.log("onChangeFilter", object_id);
|
|
195
|
+
const onChangeFilter = (_initFilters, rawFilters) => {
|
|
198
196
|
setQueryParams((oldParms) => ({
|
|
199
197
|
...oldParms,
|
|
200
198
|
f: rawFilters
|
|
201
199
|
}));
|
|
202
200
|
Refresh();
|
|
203
|
-
}
|
|
204
|
-
console.log("Render ObjectLogs", object_id, queryParams);
|
|
201
|
+
};
|
|
205
202
|
return /* @__PURE__ */ jsxs(Container$1, {
|
|
206
203
|
children: [/* @__PURE__ */ jsx(Actions, {
|
|
207
204
|
id: "objectLogsActions",
|