Skip to content

Commit

Permalink
Parent resources: Speed up and fix layout (#2035)
Browse files Browse the repository at this point in the history
  • Loading branch information
paulbert authored Sep 5, 2018
1 parent 9ada87d commit f49e727
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/app/resources/resources.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
<h3 class="header">
<a [routerLink]="['view', element._id]">{{element.title}}</a>
</h3>
<td-markdown [content]="element.description"></td-markdown>
<td-markdown class="content" [content]="element.description"></td-markdown>
<mat-chip-list #tagsList class="tags-list">
<mat-chip *ngFor="let tag of element.tags" (click)="addTag(tag)">
{{tag}}
Expand Down
3 changes: 1 addition & 2 deletions src/app/shared/couchdb.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,7 @@ export class CouchService {
}

localComparison(db: string, parentDocs: any[]) {
const ids = parentDocs.map((parentDoc: any) => parentDoc._id);
return this.findAll(db, findDocuments({ '_id': inSelector(ids) })).pipe(map((localDocs) => {
return this.findAll(db, findDocuments({ '_id': { '$gt': null } }, 0, 0, 1000)).pipe(map((localDocs) => {
return parentDocs.map((parentDoc) => {
const localDoc: any = localDocs.find((doc: any) => doc._id === parentDoc._id);
return {
Expand Down

0 comments on commit f49e727

Please sign in to comment.