Skip to content

Commit

Permalink
made default params optional
Browse files Browse the repository at this point in the history
  • Loading branch information
gmmorris committed Dec 3, 2020
1 parent ca54013 commit 69fa7af
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export interface ActionAccordionFormProps {
setHasActionsDisabled?: (value: boolean) => void;
setHasActionsWithBrokenConnector?: (value: boolean) => void;
actionTypeRegistry: ActionTypeRegistryContract;
getDefaultActionParams: DefaultActionParamsGetter;
getDefaultActionParams?: DefaultActionParamsGetter;
}

interface ActiveActionConnectorState {
Expand Down Expand Up @@ -344,7 +344,7 @@ export const ActionForm = ({
messageVariables={messageVariables}
actionGroups={actionGroups}
defaultActionMessage={defaultActionMessage}
defaultParams={getDefaultActionParams(actionItem.actionTypeId, actionItem.group)}
defaultParams={getDefaultActionParams?.(actionItem.actionTypeId, actionItem.group)}
setActionGroupIdByIndex={setActionGroupIdByIndex}
onAddConnector={() => {
setActiveActionItem({ actionTypeId: actionItem.actionTypeId, index });
Expand Down

0 comments on commit 69fa7af

Please sign in to comment.