1
0
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:
Pablo Andrés Vélez Vidal 2023-03-01 00:32:48 +01:00 committed by GitHub
commit a1659ad8d2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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)