1
0
mirror of https://github.com/mattermost/focalboard.git synced 2024-12-21 13:38:56 +02:00

MM-50804 - add reference to template id to action function

This commit is contained in:
Pablo Andrés Vélez Vidal 2023-02-27 12:52:09 +01:00
parent f2a7d613eb
commit 7e0b4955e2

View File

@ -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)