Skip to content

Commit

Permalink
fix(searchbar): search for entities works
Browse files Browse the repository at this point in the history
  • Loading branch information
MatsJohansen87 committed Dec 21, 2023
1 parent 89107ba commit b67a908
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 b67a908

Please sign in to comment.