From 5e081af62822a7de85dfd1f24643a5c8eef9d3a4 Mon Sep 17 00:00:00 2001 From: Hunter Craft <118154470+hunterckx@users.noreply.github.com> Date: Wed, 18 Dec 2024 00:31:10 -0800 Subject: [PATCH] fix: resolve error when searching `disabled` filter (#493) (#498) * refactor: remove unnecessary label mapper (#493) * fix: update findable ui to latest to resolve error filtering booleans (#493) --- package-lock.json | 8 ++++---- package.json | 2 +- .../hca-atlas-tracker/local/index/userEntityConfig.ts | 4 ---- 3 files changed, 5 insertions(+), 9 deletions(-) diff --git a/package-lock.json b/package-lock.json index 6d1bb272..70249423 100644 --- a/package-lock.json +++ b/package-lock.json @@ -8,7 +8,7 @@ "name": "hca-atlas-tracker", "version": "1.0.0", "dependencies": { - "@databiosphere/findable-ui": "16.0.0", + "@databiosphere/findable-ui": "^18.0.0", "@emotion/react": "^11.13.3", "@emotion/styled": "^11.13.0", "@hookform/resolvers": "^3.3.4", @@ -1769,9 +1769,9 @@ } }, "node_modules/@databiosphere/findable-ui": { - "version": "16.0.0", - "resolved": "https://registry.npmjs.org/@databiosphere/findable-ui/-/findable-ui-16.0.0.tgz", - "integrity": "sha512-jWgWet5wrITcYOjRDNjm3GoijZCs4cKy5Tr/W5LDCjpTNN2PqvMfruTqB/qHDtpuIXYbKSjwFFfJ8jLd2QFDkg==", + "version": "18.0.0", + "resolved": "https://registry.npmjs.org/@databiosphere/findable-ui/-/findable-ui-18.0.0.tgz", + "integrity": "sha512-uhkhfoBC4iCfsnu7COT5DdlR6on5wuCYdVPUt3kXxjT5tMVyl6wSdoxTk4M6MXL0zthfCMKaoSb8Z5gKrfMfKw==", "engines": { "node": "20.10.0" }, diff --git a/package.json b/package.json index 8eff6eed..a8a60105 100644 --- a/package.json +++ b/package.json @@ -16,7 +16,7 @@ "migrate": "ts-node -O '{\"module\": \"commonjs\"}' ./scripts/migration-runner.ts -j ts" }, "dependencies": { - "@databiosphere/findable-ui": "16.0.0", + "@databiosphere/findable-ui": "^18.0.0", "@emotion/react": "^11.13.3", "@emotion/styled": "^11.13.0", "@hookform/resolvers": "^3.3.4", diff --git a/site-config/hca-atlas-tracker/local/index/userEntityConfig.ts b/site-config/hca-atlas-tracker/local/index/userEntityConfig.ts index 75492df8..cda704a7 100644 --- a/site-config/hca-atlas-tracker/local/index/userEntityConfig.ts +++ b/site-config/hca-atlas-tracker/local/index/userEntityConfig.ts @@ -9,7 +9,6 @@ import { HCAAtlasTrackerUser } from "../../../../app/apis/catalog/hca-atlas-trac import { getUserId } from "../../../../app/apis/catalog/hca-atlas-tracker/common/utils"; import * as C from "../../../../app/components"; import { COLUMN_VISIBILITY } from "../../../../app/components/Table/features/constants"; -import { mapSelectCategoryValue } from "../../../../app/config/utils"; import * as V from "../../../../app/viewModelBuilders/catalog/hca-atlas-tracker/common/viewModelBuilders"; import { HCA_ATLAS_TRACKER_CATEGORY_KEY, @@ -45,9 +44,6 @@ export const userEntityConfig: EntityConfig = { { key: HCA_ATLAS_TRACKER_CATEGORY_KEY.DISABLED, label: HCA_ATLAS_TRACKER_CATEGORY_LABEL.DISABLED, - mapSelectCategoryValue: mapSelectCategoryValue((value) => - value.toString() - ), }, ], },