diff --git a/nuxt-frontend/stores/tags/index.js b/nuxt-frontend/stores/tags/index.js index 888ab1fb0..51a813e2c 100644 --- a/nuxt-frontend/stores/tags/index.js +++ b/nuxt-frontend/stores/tags/index.js @@ -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;