fixed side effects from code removal

parent 4d3b8259
......@@ -11,9 +11,9 @@ import {
IAppState,
rootReducer,
middleware,
enhancers,
// enhancers,
} from '../store';
import { reimmutify } from '../store';
// import { reimmutify } from '../store';
@Component({
......@@ -61,8 +61,8 @@ export default class Main {
const tools = _devTools.enhancer({
deserializeState: reimmutify,
});
// deserializeState: reimmutify,
});
_ngRedux.configureStore(
rootReducer,
{},
......
......@@ -13,7 +13,7 @@ export function courseFieldsReducer(state: ICourseFields = INITIAL_STATE, action
let newCourseFields = Array<ICourseField>();
let i=0;
action.payload.courseFields.forEach(courseField => {
newCourseFields.push(<ICourseField>{id: courseField.id, name: courseField.name, selected: 0});
newCourseFields.push(<ICourseField>{id: courseField.id, name: courseField.name, selected: false});
i++;
});
return Seq(newCourseFields).map(n => n).toList();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment