scene apply preparations

This commit is contained in:
Jacob Salvi 2020-04-26 11:15:05 +02:00
parent 07f4a8ee43
commit cce1650bd9

View file

@ -380,6 +380,7 @@ function reducer(previousState, action) {
break; break;
case "SCENE_APPLY": case "SCENE_APPLY":
//checking that the scene actually exists
if (!(action.sceneId in previousState.scenes)) { if (!(action.sceneId in previousState.scenes)) {
console.warn(`Scene ${action.sceneId} does not exist`); console.warn(`Scene ${action.sceneId} does not exist`);
break; break;