Commit 2b2220eb authored by Phil Hughes's avatar Phil Hughes

Fixed resolved notes not being scrolled to on load

parent a688cdc3
...@@ -105,6 +105,13 @@ export default { ...@@ -105,6 +105,13 @@ export default {
}, },
}, },
watch: { watch: {
async isFetching() {
if (!this.isFetching) {
await this.$nextTick();
await this.startTaskList();
await this.checkLocationHash();
}
},
shouldShow() { shouldShow() {
if (!this.isNotesFetched) { if (!this.isNotesFetched) {
this.fetchNotes(); this.fetchNotes();
...@@ -200,9 +207,6 @@ export default { ...@@ -200,9 +207,6 @@ export default {
eventHub.$emit('fetchedNotesData'); eventHub.$emit('fetchedNotesData');
this.setFetchingState(false); this.setFetchingState(false);
}) })
.then(this.$nextTick)
.then(this.startTaskList)
.then(this.checkLocationHash)
.catch(() => { .catch(() => {
this.setLoadingState(false); this.setLoadingState(false);
this.setNotesFetchedState(true); this.setNotesFetchedState(true);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment