fix(face-landmarks): assign empty array to facelandmarks in speakerstats if undefined

This commit is contained in:
Gabriel Borlea 2022-11-29 20:12:43 +02:00 committed by GitHub
parent 3cbf160f2b
commit 2556a7ab77
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -30,7 +30,8 @@ const abstractSpeakerStatsList = (speakerStatsItem: Function): Function[] => {
(state: IReduxState) => state['features/base/config']) || {};
const { faceLandmarks: faceLandmarksConfig } = useSelector((state: IReduxState) =>
state['features/base/config']) || {};
const { faceLandmarks } = useSelector((state: IReduxState) => state['features/face-landmarks']) || {};
const { faceLandmarks } = useSelector((state: IReduxState) => state['features/face-landmarks'])
|| { faceLandmarks: [] };
const reloadInterval = useRef<number>();
/**