projects
/
vchess.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6b7b2cf
)
Filter out Eightpieces from variants list for now
author
Benjamin Auder
<benjamin.auder@somewhere>
Thu, 12 Mar 2020 11:14:37 +0000
(12:14 +0100)
committer
Benjamin Auder
<benjamin.auder@somewhere>
Thu, 12 Mar 2020 11:14:37 +0000
(12:14 +0100)
client/src/store.js
patch
|
blob
|
blame
|
history
diff --git
a/client/src/store.js
b/client/src/store.js
index
668f999
..
8fe46b9
100644
(file)
--- a/
client/src/store.js
+++ b/
client/src/store.js
@@
-30,8
+30,9
@@
export const store = {
alert("Variants loading failed: reload the page");
return;
}
- this.state.variants = json.variantArray.sort(
- (v1,v2) => v1.name.localeCompare(v2.name));
+ this.state.variants = json.variantArray
+ .filter(v => v.name != "Eightpieces") //TODO: not ready yet
+ .sort((v1,v2) => v1.name.localeCompare(v2.name));
});
let mysid = localStorage.getItem("mysid");
// Assign mysid only once (until next time user clear browser data)