Skip to content

Commit

Permalink
fix: instance returned by gathering search causing strange results
Browse files Browse the repository at this point in the history
  • Loading branch information
Supamiu committed Mar 21, 2018
1 parent 4d42c48 commit b025547
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,10 @@
<div class="timed" *ngIf="node.timed">
<mat-icon>access_alarm</mat-icon>
<div class="spawns">
<span *ngFor="let spawn of getSpawns(node)">{{spawn}}</span>
<span *ngFor="let spawn of getSpawns(node); let first = first">
<span *ngIf="!first"> / </span>
{{spawn}}
</span>
</div>
</div>
<div class="spacer" *ngIf="!node.timed"></div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,10 @@ mat-card {
display: flex;
flex-direction: row;
align-items: center;
margin: 5px 0;
.spawns {
flex: 1 1 auto;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
text-align: center;
.spawn-row {
margin: 2px 0;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,9 @@ export class GatheringLocationComponent implements OnInit {
.mergeMap(name => this.dataService.searchGathering(name))
.map(items => {
return items
// First of all, add node informations
// Only use item results
.filter(item => item.type === 'item')
// First of all, add node informations
.map(item => {
item.nodes = Object.keys(nodePositions)
.map(key => {
Expand Down

0 comments on commit b025547

Please sign in to comment.