Merge pull request #20026 from Arthurk12/bbb/2.7/multiuser-non-presenter-error
fix(whiteboard): check before manipulating pan tool class list
This commit is contained in:
commit
f5be95da32
@ -145,8 +145,11 @@ export default function Whiteboard(props) {
|
||||
} else {
|
||||
setIsPanning(false);
|
||||
setPanSelected(false);
|
||||
panButton.classList.add('selectOverride');
|
||||
panButton.classList.remove('select');
|
||||
if (panButton) {
|
||||
// only presenter has the pan button
|
||||
panButton.classList.add('selectOverride');
|
||||
panButton.classList.remove('select');
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user