Remove hikes from map view

This commit is contained in:
Berkeley Martinez
2015-12-04 22:18:00 -08:00
parent ab043d1c6d
commit 8037ff9038
2 changed files with 3 additions and 4 deletions

View File

@ -157,7 +157,6 @@ module.exports = function(app) {
.flatMap(superBlock => Observable.just(superBlock))
.shareReplay();
superBlocks$.subscribe(() => {});
const User = app.models.User;
const userCount$ = observeMethod(User, 'count');
@ -192,7 +191,7 @@ module.exports = function(app) {
// find challenge
return challenge$
.map(challenge => challenge.toJSON())
.filter(({ block }) => block !== 'Hikes')
.filter(({ superBlock }) => superBlock !== 'hikes')
.filter(({ id }) => id === challengeId)
// now lets find the block it belongs to
.flatMap(challenge => {
@ -530,7 +529,7 @@ module.exports = function(app) {
time: blockArray[0] && blockArray[0].time || '???'
};
})
.filter(({ name }) => name !== 'Hikes')
.filter(({ superBlock }) => superBlock !== 'hikes')
// turn stream of blocks into a stream of an array
.toArray()
.doOnNext(blocks => {

View File

@ -45,7 +45,7 @@ block content
.row
.col-xs-12.col-sm-8.col-sm-offset-2
h3 800 Hours of Practice:
ol
ul
for superBlock in superBlocks
h1= superBlock.name
- var i = 0