fix loading (should fix some error situations)

This commit is contained in:
korelstar 2022-08-13 17:04:40 +02:00
parent 0557508f3f
commit f5905b60f0
1 changed files with 2 additions and 2 deletions

View File

@ -73,10 +73,10 @@ export const fetchNotes = () => {
)
.then(response => {
store.commit('setSettings', response.data.settings)
if (response.data.categries !== null) {
if (response.data.categories) {
store.commit('setCategories', response.data.categories)
}
if (response.data.noteIds !== null) {
if (response.data.noteIds && response.data.notesData) {
store.dispatch('updateNotes', { noteIds: response.data.noteIds, notes: response.data.notesData })
}
if (response.data.errorMessage) {