Skip to content

Commit

Permalink
feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
lassopicasso committed Nov 4, 2024
1 parent 15ac234 commit b8cc0fd
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ export const CreateNewSubformLayoutSet = ({
setNewSubform(e.target.value);
}

function handleCreateSubform() {
createSubform({ layoutSetName: newSubform, onSubformCreated });
}

return (
<StudioCard>
<StudioCard.Content>
Expand All @@ -44,7 +48,7 @@ export const CreateNewSubformLayoutSet = ({
<StudioButton
className={classes.savelayoutSetButton}
icon={<CheckmarkIcon />}
onClick={() => createSubform({ layoutSetName: newSubform, onSubformCreated })}
onClick={handleCreateSubform}
title={t('general.close')}
disabled={!newSubform || !!nameError}
variant='tertiary'
Expand Down

0 comments on commit b8cc0fd

Please sign in to comment.