From 19267d897e30cde069fef0a8792784b2753cb76f Mon Sep 17 00:00:00 2001 From: dyzulk <66510723+dyzulk@users.noreply.github.com> Date: Sun, 18 Jan 2026 17:17:48 +0700 Subject: [PATCH] fix(registry): prevent crash on null properties --- .vitepress/theme/components/PluginRegistry.vue | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.vitepress/theme/components/PluginRegistry.vue b/.vitepress/theme/components/PluginRegistry.vue index b6f5466..93a2a5d 100644 --- a/.vitepress/theme/components/PluginRegistry.vue +++ b/.vitepress/theme/components/PluginRegistry.vue @@ -33,9 +33,13 @@ const categories = computed(() => { // Filter Logic const filteredPlugins = computed(() => { return plugins.value.filter(p => { - const matchesSearch = p.name.toLowerCase().includes(searchQuery.value.toLowerCase()) || - p.description.toLowerCase().includes(searchQuery.value.toLowerCase()) || - (p.tags && p.tags.some(t => t.toLowerCase().includes(searchQuery.value.toLowerCase()))) + const name = p.name || '' + const desc = p.description || '' + const query = searchQuery.value.toLowerCase() + + const matchesSearch = name.toLowerCase().includes(query) || + desc.toLowerCase().includes(query) || + (p.tags && p.tags.some(t => t && t.toLowerCase().includes(query))) const matchesCategory = activeCategory.value === 'All' || p.category === activeCategory.value