projects
/
vchess.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Filter out Eightpieces from variants list for now
[vchess.git]
/
client
/
src
/
store.js
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;
}
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)
});
let mysid = localStorage.getItem("mysid");
// Assign mysid only once (until next time user clear browser data)