diff --git a/src/components/screen/screen-manager.jsx b/src/components/screen/screen-manager.jsx index 6c5db2d4..c9ea4249 100644 --- a/src/components/screen/screen-manager.jsx +++ b/src/components/screen/screen-manager.jsx @@ -127,9 +127,12 @@ function ScreenManager({ * @returns {Array | null} A mapped array with group ids or null */ function mapGroups() { - return formStateObject.inScreenGroups.map((group) => { - return idFromUrl(group); - }); + if (formStateObject.inScreenGroups) { + return formStateObject.inScreenGroups.map((group) => { + return idFromUrl(group); + }); + } + return []; } /** @@ -254,7 +257,7 @@ function ScreenManager({ regions: mapPlaylistsWithRegion(), }), }; - + debugger; setLoadingMessage(t("loading-messages.saving-screen")); if (saveMethod === "POST") {