@trackunit/filters-asset-filter-definitions 1.3.86 → 1.3.88

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/index.cjs.js CHANGED
@@ -4221,6 +4221,11 @@ const useSetAssetFilterStateFromUrl = ({ setters }) => {
4221
4221
  setter(() => resolvedValue);
4222
4222
  }
4223
4223
  });
4224
+ //If all filters are undefined, we are done setting filters
4225
+ if (filterMappings.every(({ value }) => !value)) {
4226
+ setIsDoneSettingFilters(true);
4227
+ }
4228
+ //If any filter is defined, we need to navigate to the url with the filters
4224
4229
  if (filterMappings.some(({ value }) => value)) {
4225
4230
  navigate({
4226
4231
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
package/index.esm.js CHANGED
@@ -4219,6 +4219,11 @@ const useSetAssetFilterStateFromUrl = ({ setters }) => {
4219
4219
  setter(() => resolvedValue);
4220
4220
  }
4221
4221
  });
4222
+ //If all filters are undefined, we are done setting filters
4223
+ if (filterMappings.every(({ value }) => !value)) {
4224
+ setIsDoneSettingFilters(true);
4225
+ }
4226
+ //If any filter is defined, we need to navigate to the url with the filters
4222
4227
  if (filterMappings.some(({ value }) => value)) {
4223
4228
  navigate({
4224
4229
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trackunit/filters-asset-filter-definitions",
3
- "version": "1.3.86",
3
+ "version": "1.3.88",
4
4
  "repository": "https://github.com/Trackunit/manager",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "engines": {
@@ -18,20 +18,20 @@
18
18
  "string-ts": "^2.0.0",
19
19
  "tailwind-merge": "^2.0.0",
20
20
  "@trackunit/iris-app-build-utilities": "1.3.48",
21
- "@trackunit/filters-filter-bar": "1.3.78",
22
- "@trackunit/react-core-hooks": "1.3.48",
23
- "@trackunit/react-filter-components": "1.3.64",
24
- "@trackunit/react-form-components": "1.3.64",
25
- "@trackunit/filters-graphql-hook": "1.3.78",
26
- "@trackunit/utilization-indicator": "1.3.59",
21
+ "@trackunit/filters-filter-bar": "1.3.80",
22
+ "@trackunit/react-core-hooks": "1.3.49",
23
+ "@trackunit/react-filter-components": "1.3.65",
24
+ "@trackunit/react-form-components": "1.3.65",
25
+ "@trackunit/filters-graphql-hook": "1.3.80",
26
+ "@trackunit/utilization-indicator": "1.3.60",
27
27
  "@trackunit/geo-json-utils": "1.3.47",
28
28
  "@trackunit/react-components": "1.4.56",
29
29
  "@trackunit/shared-utils": "1.5.46",
30
- "@trackunit/translations-machine-type": "1.3.51",
31
- "@trackunit/criticality-indicator": "1.3.59",
30
+ "@trackunit/translations-machine-type": "1.3.52",
31
+ "@trackunit/criticality-indicator": "1.3.60",
32
32
  "@trackunit/iris-app-api": "1.3.48",
33
- "@trackunit/react-core-contexts-test": "1.3.48",
34
- "@trackunit/i18n-library-translation": "1.3.50"
33
+ "@trackunit/react-core-contexts-test": "1.3.49",
34
+ "@trackunit/i18n-library-translation": "1.3.51"
35
35
  },
36
36
  "module": "./index.esm.js",
37
37
  "main": "./index.cjs.js",