Skip to content

Commit

Permalink
refactor: enhance useConnectDestinationForm to support additional com…
Browse files Browse the repository at this point in the history
…ponent properties for checkboxes
  • Loading branch information
BenElferink committed Dec 20, 2024
1 parent c1e0015 commit 872f515
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,16 @@ export function useConnectDestinationForm() {
};

case INPUT_TYPES.KEY_VALUE_PAIR:
return {
name,
componentType,
title: displayName,
...componentPropertiesJson,
};

case INPUT_TYPES.CHECKBOX:
componentPropertiesJson = safeJsonParse<{ [key: string]: string }>(componentProperties, {});

return {
name,
componentType,
Expand Down

0 comments on commit 872f515

Please sign in to comment.