From 7c59dc56a3edc026e8a1ae19c7c652f35e6a31ca Mon Sep 17 00:00:00 2001 From: Sandra Hoang Date: Mon, 16 Dec 2024 00:43:43 -0500 Subject: [PATCH] fix lint and ts-check error --- app/scripts/components/common/card/index.tsx | 2 +- .../exploration/components/dataset-selector-modal/index.tsx | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/app/scripts/components/common/card/index.tsx b/app/scripts/components/common/card/index.tsx index 908d8949b..b5d29de64 100644 --- a/app/scripts/components/common/card/index.tsx +++ b/app/scripts/components/common/card/index.tsx @@ -301,7 +301,7 @@ function CardComponent(props: CardComponentPropsType) { const { linkProperties: linkPropertiesProps } = props; linkProperties = linkPropertiesProps; } else { - // @NOTE: This currently just exists for GHG which uses the Card component + // @NOTE: This currently just exists for GHG which uses the Card component const { linkTo } = props; linkProperties = linkTo ? { diff --git a/app/scripts/components/exploration/components/dataset-selector-modal/index.tsx b/app/scripts/components/exploration/components/dataset-selector-modal/index.tsx index 171d08059..12548934b 100644 --- a/app/scripts/components/exploration/components/dataset-selector-modal/index.tsx +++ b/app/scripts/components/exploration/components/dataset-selector-modal/index.tsx @@ -66,7 +66,7 @@ const DatasetModal = styled(Modal)` interface DatasetSelectorModalProps { revealed: boolean; close: () => void; - linkProperties: LinkProperties; + linkProperties?: LinkProperties; datasets: DatasetData[]; datasetPathName: string; timelineDatasets: TimelineDataset[]; @@ -126,7 +126,6 @@ export function DatasetSelectorModal(props: DatasetSelectorModalProps) { setSelectedIds={setSelectedIds} onAction={onAction} filterLayers={true} - linkProperties={linkProperties} emptyStateContent={ <>

There are no datasets to show with the selected filters.