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:
Anton Georgiev 2024-04-16 19:57:32 -04:00 committed by GitHub
commit f5be95da32
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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');
}
}
};