import {SET_ENABLE_SPARK} from "../../constants/Roles";
import {Map} from "immutable";

const initialState = Map({
  roles: [{
    role: "spark",
    sudo: "noe"
  }],
  nginx: {}
});

export default function spark(state = initialState, action) {
  switch (action.type) {
    case SET_ENABLE_SPARK:
    {
      return state.set("enable_spark", action.value.get("enable_spark"));
    }
    default:
      return state;
  }
}

@@ -152,17 +152,16 @@
 udo: %22no
-e
 %22%0A  %7D%5D,%0A

Fix typo