@bluemarble/bm-components 1.13.0 → 1.13.2
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 +2 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -4694,9 +4694,9 @@ function getObjectValue(obj) {
|
|
|
4694
4694
|
}
|
|
4695
4695
|
|
|
4696
4696
|
// src/hooks/useFilter.ts
|
|
4697
|
-
function useFilter(props) {
|
|
4697
|
+
function useFilter(props = {}) {
|
|
4698
4698
|
const [selectedFilters, setSelectedFilters] = useState6(
|
|
4699
|
-
props.defaultFilters || []
|
|
4699
|
+
(props == null ? void 0 : props.defaultFilters) || []
|
|
4700
4700
|
);
|
|
4701
4701
|
const filterBy = useCallback4((newFilter) => {
|
|
4702
4702
|
const propToCompare = (newFilter == null ? void 0 : newFilter.id) ? "id" : "prop";
|