Skip to content

Commit

Permalink
Refactor query for posts by tag
Browse files Browse the repository at this point in the history
  • Loading branch information
cp-dharti-r committed Jul 5, 2024
1 parent e34e7c1 commit 70b8902
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nuxt-frontend/stores/tags/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export const useTagListStore = defineStore("tag-list", {
this.isLoading = true;
this.error = null;

let published = showDrafts ? "is_published=false" : "is_published=true";
let published = `is_published=${!showDrafts}`;

let url = config.API_BASE + "/api/posts/tags/" + slug + "?" + published;

Expand Down

0 comments on commit 70b8902

Please sign in to comment.