Skip to content

Commit

Permalink
fix: Search page title
Browse files Browse the repository at this point in the history
  • Loading branch information
bprusinowski committed Jun 5, 2024
1 parent a7b1001 commit 7ee8a35
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions app/browser/select-dataset-step.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -287,9 +287,9 @@ const SelectDatasetStepContent = ({
const type = d.type;
switch (type) {
case SearchCubeFilterType.DataCubeTheme:
return orgs;
case SearchCubeFilterType.DataCubeOrganization:
return themes;
case SearchCubeFilterType.DataCubeOrganization:
return orgs;
case SearchCubeFilterType.Termset:
return termsets.map((x) => x.termset);
case SearchCubeFilterType.DataCubeAbout:
Expand All @@ -301,9 +301,7 @@ const SelectDatasetStepContent = ({
throw new Error(`Invalid search cube filter type ${check}`);
}
})();
const item = (searchList as { iri: string; label?: string }[]).find(
({ iri }) => iri === d.value
);
const item = searchList.find(({ iri }) => iri === d.value);

Check failure on line 304 in app/browser/select-dataset-step.tsx

View workflow job for this annotation

GitHub Actions / lint-typecheck-test

This expression is not callable.

Check failure on line 304 in app/browser/select-dataset-step.tsx

View workflow job for this annotation

GitHub Actions / lint-typecheck-test

Binding element 'iri' implicitly has an 'any' type.
return (item ?? d).label;
})
.join(", ");
Expand Down

0 comments on commit 7ee8a35

Please sign in to comment.