home
/
projects
/
workouts
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0141463
)
changed default sort order for easier usage
author
Alex-Laptop
<
[email protected]
>
Wed, 18 Sep 2019 04:27:23 +0000
(21:27 -0700)
committer
Alex-Laptop
<
[email protected]
>
Wed, 18 Sep 2019 04:27:23 +0000
(21:27 -0700)
src/reducers/view.js
patch
|
blob
|
history
diff --git
a/src/reducers/view.js
b/src/reducers/view.js
index 3e503c4d3c37065d5d797080db51b7f9f4d86126..6152197368ceda34dc9eea8ac146e7af79050b91 100644
(file)
--- a/
src/reducers/view.js
+++ b/
src/reducers/view.js
@@
-90,7
+90,6
@@
export default function view(state = defaultState,action) {
return state;
}
case SORT_VIEW:
- console.log(SORT_VIEW);
if(action.key === void(0)) {
return state;
}
@@
-109,7
+108,7
@@
export default function view(state = defaultState,action) {
if((newSortKey[0] !== void(0))&&(newSortKey[0]==action.key)) {
newSortOrder = (newSortOrder[0]=="asc")?["desc"]:["asc"];
} else {
- newSortOrder = ["
a
sc"];
+ newSortOrder = ["
de
sc"];
}
newSortKey = [action.key];
}