Fix add board
This commit is contained in:
parent
4ed2e02fef
commit
5269175248
1 changed files with 3 additions and 4 deletions
|
@ -175,7 +175,7 @@ class Sidebar extends React.Component<Props, State> {
|
|||
|
||||
<br/>
|
||||
|
||||
<Button onClick={this.addBoardClicked}>
|
||||
<Button onClick={() => {this.addBoardClicked()}}>
|
||||
<FormattedMessage
|
||||
id='Sidebar.add-board'
|
||||
defaultMessage='+ Add Board'
|
||||
|
@ -268,9 +268,8 @@ class Sidebar extends React.Component<Props, State> {
|
|||
if (oldBoardId) {
|
||||
showBoard(oldBoardId)
|
||||
}
|
||||
})
|
||||
|
||||
await mutator.insertBlock(board)
|
||||
}
|
||||
)
|
||||
}
|
||||
|
||||
private hideClicked() {
|
||||
|
|
Loading…
Reference in a new issue