Skip to content

Commit

Permalink
fix(call-service): Don't add id to select2 if it is an empty string
Browse files Browse the repository at this point in the history
  • Loading branch information
zachowj committed Feb 20, 2022
1 parent c3135ca commit 86e7551
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/editor/components/select2.ts
Expand Up @@ -95,7 +95,7 @@ export const createCustomIdListByProperty = <T>(
const propertyId = (item: T) =>
opts?.property ? item[opts?.property] : item;
if (
(opts?.includeUnknownIds ||
((opts?.includeUnknownIds && id) ||
containsMustache(id) ||
isNodeRedEnvVar(id)) &&
!list.find((item) => propertyId(item) === id)
Expand Down

0 comments on commit 86e7551

Please sign in to comment.