Merge pull request #12297 from ramonlsouza/fix-toolbar-crash

fix: toolbar crash with presenter changes
This commit is contained in:
Anton Georgiev 2021-05-05 15:21:56 -04:00 committed by GitHub
commit 45db82dbdb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -313,8 +313,8 @@ class WhiteboardToolbar extends Component {
}
// 1st case a)
this.colorListIconColor.beginElement();
// 2nd case - never happens when the text tool is selected
} else if (thicknessSelected.value !== prevState.thicknessSelected.value) {
// 2nd case
} else if (thicknessSelected.value !== prevState.thicknessSelected.value && annotationSelected.value !== 'text') {
this.thicknessListIconRadius.beginElement();
// 3rd case
} else if (annotationSelected.value !== 'text'