NERDDISCO / luminave

Operate all the lights with your web browser and create stunning visual experiences.
MIT License
77 stars 8 forks source link

Remove fixture will fail when a scene has no fixtures added to it. #49

Closed TimPietrusky closed 6 years ago

TimPietrusky commented 6 years ago
selectors.getScenes(getState()).map(scene => {
      if (scene.fixtures.indexOf(fixtureId) > -1) {
        dispatch(removeFixtureFromScene(scene.id, scene.fixtures.indexOf(fixtureId)));
      }
    });

-> scene.fixtures.indexOf

TimPietrusky commented 6 years ago

This was fixed with #43 because now scene.fixtures is initialised with an empty array.