mirror of
https://github.com/mattermost/focalboard.git
synced 2025-01-23 18:34:02 +02:00
Merge pull request #4602 from mattermost/MM-50804-error-creating-empty-board
MM-50804 - add reference to template id to action function
This commit is contained in:
commit
a1659ad8d2
@ -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…
x
Reference in New Issue
Block a user