@bluemarble/bm-components 1.13.3 → 1.13.4

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
@@ -4695,9 +4695,10 @@ function getObjectValue(obj) {
4695
4695
 
4696
4696
  // src/hooks/useFilter.ts
4697
4697
  function useFilter(props = { defaultFilters: [] }) {
4698
- const [selectedFilters, setSelectedFilters] = _react.useState.call(void 0,
4699
- (props == null ? void 0 : props.defaultFilters) || []
4700
- );
4698
+ const [selectedFilters, setSelectedFilters] = _react.useState.call(void 0, () => {
4699
+ const { defaultFilters } = props;
4700
+ return defaultFilters || [];
4701
+ });
4701
4702
  const filterBy = _react.useCallback.call(void 0, (newFilter) => {
4702
4703
  const propToCompare = (newFilter == null ? void 0 : newFilter.id) ? "id" : "prop";
4703
4704
  function removeRepeatedFilters(filter) {