From f38ae87c955ff968e1d342a6ef0bb12ca6da0fe3 Mon Sep 17 00:00:00 2001 From: Kristin Aoki <42981026+KristinAoki@users.noreply.github.com> Date: Tue, 29 Nov 2022 12:44:56 -0500 Subject: [PATCH] fix: length error on undefined fallback videos (#147) --- src/editors/data/redux/thunkActions/video.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/editors/data/redux/thunkActions/video.js b/src/editors/data/redux/thunkActions/video.js index b41c72b4d..b8ced6af0 100644 --- a/src/editors/data/redux/thunkActions/video.js +++ b/src/editors/data/redux/thunkActions/video.js @@ -92,7 +92,7 @@ export const determineVideoSource = ({ [videoSource, fallbackVideos] = [html5Sources[0], html5Sources.slice(1)]; videoType = 'html5source'; } - if (fallbackVideos.length === 0) { + if (!fallbackVideos || fallbackVideos.length === 0) { fallbackVideos = ['', '']; } return {