Skip to content

Commit

Permalink
Fixed some bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
Raphaël committed Nov 24, 2019
1 parent ce670b6 commit 74113c3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/app/components/collection/collection.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ export class CollectionComponent implements OnInit, OnDestroy {

// Subscriptions
this.subscription = this.collection.notebookEdited$.subscribe(async () => await this.getNotebooksAsync());
this.subscription = this.collection.notebookDeleted$.subscribe(async () => await this.getNotebooksAndResetSelectionAsync());
this.subscription.add(this.collection.notebookDeleted$.subscribe(async () => await this.getNotebooksAndResetSelectionAsync()));

this.subscription.add(this.collection.notesCountChanged$.subscribe((result: NotesCountResult) => {
this.allNotesCount = result.allNotesCount;
Expand Down
2 changes: 1 addition & 1 deletion src/app/components/notes/notes.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ export class NotesComponent implements OnInit, OnDestroy {
await this.collection.initializeAsync();

this.subscription = this.collection.noteEdited$.subscribe(() => this.getNotes());
this.subscription = this.collection.noteDeleted$.subscribe(() => this.getNotes());
this.subscription.add(this.collection.noteDeleted$.subscribe(() => this.getNotes()));
this.subscription.add(this.collection.noteNotebookChanged$.subscribe(() => this.getNotes()));
this.subscription.add(this.search.searchTextChanged$.subscribe((_) => this.getNotes()));

Expand Down

0 comments on commit 74113c3

Please sign in to comment.