Skip to content

Commit

Permalink
Merge pull request #29 from samply/feature/25-fix-entities-in-searchbar
Browse files Browse the repository at this point in the history
fix(searchbar): search for entities works
  • Loading branch information
MatsJohansen87 authored Dec 21, 2023
2 parents cf71586 + b67a908 commit 926e16f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -175,11 +175,11 @@
id: uuidv4(),
name: inputItem.name,
key: inputItem.key,
type: inputItem.type,
type: "type" in inputItem && inputItem.type,
system: "system" in inputItem && inputItem.system,
values: [
{
value: inputItem.criterion.key,
value: 'aggregatedValue' in inputItem.criterion ? inputItem.criterion.aggregatedValue : inputItem.criterion.key,
name: inputItem.criterion.name,
description: inputItem.criterion.description,
queryBindId: uuidv4(),
Expand Down
1 change: 1 addition & 0 deletions packages/lib/src/types/queryData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ export type AutoCompleteItem = {
key: string;
name: string;
description?: string;
aggregatedValue?: AggregatedValue[][];
};
};

Expand Down

0 comments on commit 926e16f

Please sign in to comment.