Update SidebarChangelogCard.vue

This commit is contained in:
Muhsin
2025-10-15 23:49:16 +05:30
parent 74b39a4afe
commit 2ab6b67508

View File

@@ -18,7 +18,7 @@ const dismissedSlugs = computed(() => {
return uiSettings.value.changelog_dismissed_slugs || []; return uiSettings.value.changelog_dismissed_slugs || [];
}); });
// Get undismissed posts - pass them directly without transformation // Get undismissed posts
const visibleCards = computed(() => { const visibleCards = computed(() => {
return posts.value.filter(post => !dismissedSlugs.value.includes(post.slug)); return posts.value.filter(post => !dismissedSlugs.value.includes(post.slug));
}); });
@@ -46,8 +46,6 @@ const fetchChangelog = async () => {
} }
} catch (err) { } catch (err) {
error.value = err; error.value = err;
// eslint-disable-next-line no-console
console.error('Failed to fetch changelog:', err);
} finally { } finally {
isLoading.value = false; isLoading.value = false;
} }