mirror of
https://github.com/block-core/blockcore-notes.git
synced 2024-09-29 06:20:42 +00:00
Reset the root whenever selected event is changed
This commit is contained in:
parent
31483ca9e3
commit
d47d72ae10
@ -166,6 +166,9 @@ export class ThreadService {
|
||||
async changeSelectedEvent(eventId: string) {
|
||||
this.hasLoaded = false;
|
||||
|
||||
this.#root = null;
|
||||
this.#rootChanged.next(this.#root);
|
||||
|
||||
// Reset so UI doesn't show previous events.
|
||||
this.#events = null;
|
||||
this.#eventsChanged.next(this.#events);
|
||||
|
Loading…
Reference in New Issue
Block a user