chore: Minor fix

This commit is contained in:
iamsivin
2026-04-15 20:18:54 +05:30
parent bb9c4cedec
commit 0c675639e0
2 changed files with 17 additions and 10 deletions
@@ -28,6 +28,7 @@ const portal = computed(() => portalBySlug.value(portalSlug));
const isUpdating = ref(false);
const isSaved = ref(false);
const refreshTick = ref(0);
const articleLink = computed(() => {
const { slug: categorySlug, locale: categoryLocale } = article.value.category;
@@ -86,11 +87,12 @@ const goBackToArticles = () => {
}
};
const fetchArticleDetails = () => {
store.dispatch('articles/show', {
const fetchArticleDetails = async () => {
await store.dispatch('articles/show', {
id: articleSlug,
portalSlug,
});
refreshTick.value += 1;
};
const previewArticle = () => {
@@ -113,6 +115,7 @@ onMounted(fetchArticleDetails);
:article="article"
:is-updating="isUpdating"
:is-saved="isSaved"
:refresh-tick="refreshTick"
@save-article="saveArticle"
@preview-article="previewArticle"
@go-back="goBackToArticles"