Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

fix(whiteboard) handle metadata being null

Saúl Ibarra Corretgé4d5fb719d22b
diff --git a/react/features/whiteboard/middleware.any.ts b/react/features/whiteboard/middleware.any.ts
index 5cdd0c021a..abd911c964 100644
--- a/react/features/whiteboard/middleware.any.ts
+++ b/react/features/whiteboard/middleware.any.ts
@@ -41,7 +41,7 @@ MiddlewareRegistry.register((store: IStore) => next => action => {
case UPDATE_CONFERENCE_METADATA: {
const { metadata } = action;
- if (metadata[WHITEBOARD_ID]) {
+ if (metadata?.[WHITEBOARD_ID]) {
store.dispatch(setupWhiteboard({
collabDetails: metadata[WHITEBOARD_ID].collabDetails
}));