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:
parent
f2a7d613eb
commit
7e0b4955e2
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user