ywana-core8 0.0.798 → 0.0.800

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.
@@ -11085,8 +11085,9 @@ var CollectionContextProvider = function CollectionContextProvider(props) {
11085
11085
  };
11086
11086
  }, [filters]);
11087
11087
  useEffect(function () {
11088
- runCustomFilters();
11089
- }, [customFilters]);
11088
+ console.log("Run custom filters", customFilters, all);
11089
+ if (all.length > 0) runCustomFilters();
11090
+ }, [all, customFilters]);
11090
11091
 
11091
11092
  function clearSelection() {
11092
11093
  setSelected(null);
@@ -11396,9 +11397,7 @@ var CollectionList = function CollectionList(props) {
11396
11397
  sortBy = props.sortBy,
11397
11398
  sortDir = props.sortDir;
11398
11399
  var context = useContext(CollectionContext);
11399
- var _context$all = context.all,
11400
- all = _context$all === void 0 ? [] : _context$all,
11401
- _context$filtered = context.filtered,
11400
+ var _context$filtered = context.filtered,
11402
11401
  filtered = _context$filtered === void 0 ? [] : _context$filtered,
11403
11402
  selected = context.selected;
11404
11403
 
@@ -11419,7 +11418,7 @@ var CollectionList = function CollectionList(props) {
11419
11418
  return item[field];
11420
11419
  }).join(' ').toLowerCase();
11421
11420
  return text.includes(search.toLowerCase());
11422
- }) : all;
11421
+ }) : filtered;
11423
11422
  var sorted = sortBy ? searched.sort(function (a, b) {
11424
11423
  var valueA = a[sortBy];
11425
11424
  var valueB = b[sortBy];