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

View File

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