diff --git a/mattermost-plugin/webapp/src/components/createBoardFromTemplate.tsx b/mattermost-plugin/webapp/src/components/createBoardFromTemplate.tsx index af9c81560..dd7768a63 100644 --- a/mattermost-plugin/webapp/src/components/createBoardFromTemplate.tsx +++ b/mattermost-plugin/webapp/src/components/createBoardFromTemplate.tsx @@ -73,7 +73,7 @@ const CreateBoardFromTemplate = (props: Props) => { let boardsAndBlocks = undefined - if (selectedBoardTemplateId === EMPTY_BOARD) { + if (templateIdRef.current === EMPTY_BOARD) { boardsAndBlocks = await mutator.addEmptyBoard(teamId, intl) } else { boardsAndBlocks = await mutator.duplicateBoard(templateIdRef.current as string, ACTION_DESCRIPTION, asTemplate, undefined, undefined, teamId)