Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Σταύρος Παπαδάκης
e-epal
Commits
eec152a7
Commit
eec152a7
authored
Jan 13, 2017
by
Χάρης Παπαδόπουλος
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed side effects from code removal
parent
4d3b8259
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
source/containers/main.ts
source/containers/main.ts
+4
-4
source/store/coursefields/coursefields.reducer.ts
source/store/coursefields/coursefields.reducer.ts
+1
-1
No files found.
source/containers/main.ts
View file @
eec152a7
...
...
@@ -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
,
{},
...
...
source/store/coursefields/coursefields.reducer.ts
View file @
eec152a7
...
...
@@ -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
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment