Skip to content

Commit

Permalink
fix: refresh when changed ExtendedVerticalCamView
Browse files Browse the repository at this point in the history
  • Loading branch information
jibon57 committed Jan 10, 2025
1 parent c574695 commit e6a7d1c
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/components/whiteboard/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,9 @@ const Whiteboard = ({ onReadyExcalidrawAPI }: WhiteboardProps) => {
const isActiveChatPanel = useAppSelector(
(state) => state.bottomIconsActivity.isActiveChatPanel,
);
const isEnabledExtendedVerticalCamView = useAppSelector(
(state) => state.bottomIconsActivity.isEnabledExtendedVerticalCamView,
);
const { i18n } = useTranslation();
const dispatch = useAppDispatch();

Expand Down Expand Up @@ -118,7 +121,11 @@ const Whiteboard = ({ onReadyExcalidrawAPI }: WhiteboardProps) => {
clearTimeout(timeout);
};
//eslint-disable-next-line
}, [isActiveParticipantsPanel, isActiveChatPanel]);
}, [
isActiveParticipantsPanel,
isActiveChatPanel,
isEnabledExtendedVerticalCamView,
]);

useEffect(() => {
const s = store.getState();
Expand Down

0 comments on commit e6a7d1c

Please sign in to comment.