Skip to content

Commit

Permalink
Fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
cp-dharti-r committed Apr 19, 2024
1 parent 20e19be commit bb14e0a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion nuxt-frontend/stores/author/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export const useAuthorListStore = defineStore("authors", {
this.error = error;
this.isLoading = false;
this.status = config.NOT_FOUND;
resolve();
reject(error);
});
});
},
Expand Down
4 changes: 2 additions & 2 deletions nuxt-frontend/stores/resources/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ export const useBlogDetailStore = defineStore("resources-detail", {
},
actions: {
async loadResource(slug) {
return new Promise((resolve) => {
return new Promise((resolve, reject) => {
this.isLoading = true;
this.error = null;
let url = config.API_BASE + "/api/posts/" + slug;
Expand All @@ -139,7 +139,7 @@ export const useBlogDetailStore = defineStore("resources-detail", {
this.error = error;
this.isLoading = false;
this.status = config.NOT_FOUND;
resolve();
reject(error);
});
});
},
Expand Down
2 changes: 1 addition & 1 deletion nuxt-frontend/stores/tags/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export const useTagListStore = defineStore("tag-list", {
this.error = error;
this.isLoading = false;
this.status = config.NOT_FOUND;
resolve();
reject(error);
});
});
},
Expand Down

0 comments on commit bb14e0a

Please sign in to comment.