@easyvision/easyvision-ui 1.9.2 → 1.9.3

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.js CHANGED
@@ -1360,22 +1360,15 @@ var EasyVisionMultifilter = forwardRef(function EasyVisionMultifilter2(props, re
1360
1360
  );
1361
1361
  const [clearTick, setClearTick] = useState(0);
1362
1362
  const clearAll = useCallback(() => {
1363
- const seed = {};
1364
- if (config.searchField?.defaultValue !== void 0) {
1365
- seed[config.searchField.id] = config.searchField.defaultValue;
1366
- }
1367
1363
  patch({
1368
- values: seed,
1369
- activeFields: initialActive.filter((id2) => {
1370
- const def = config.fields.find((f) => f.id === id2);
1371
- return def?.pinned;
1372
- }).concat(config.searchField ? [config.searchField.id] : []),
1364
+ values: initialValues,
1365
+ activeFields: initialActive,
1373
1366
  lastConfirmedSnapshotJSON: null
1374
1367
  });
1375
1368
  if (lastConfirmedSnapshotJSON !== null && resolvedPerformMode !== "live") {
1376
1369
  setClearTick((n) => n + 1);
1377
1370
  }
1378
- }, [config, patch, initialActive, lastConfirmedSnapshotJSON, resolvedPerformMode]);
1371
+ }, [patch, initialValues, initialActive, lastConfirmedSnapshotJSON, resolvedPerformMode]);
1379
1372
  useEffect(() => {
1380
1373
  if (clearTick > 0) performAction();
1381
1374
  }, [clearTick]);