From 52268460a1727254ec35b8fce8471267ca09b72f Mon Sep 17 00:00:00 2001 From: twwu Date: Tue, 5 Nov 2024 11:19:04 +0800 Subject: [PATCH] fix: update dependency in Empty component to improve rendering logic --- web/app/components/plugins/plugin-page/empty/index.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/app/components/plugins/plugin-page/empty/index.tsx b/web/app/components/plugins/plugin-page/empty/index.tsx index ea296d9f31..74d88fd004 100644 --- a/web/app/components/plugins/plugin-page/empty/index.tsx +++ b/web/app/components/plugins/plugin-page/empty/index.tsx @@ -32,10 +32,10 @@ const Empty = () => { return 'No plugins installed' if (filters.categories.length > 0 || filters.tags.length > 0 || filters.searchQuery) return 'No plugins found' - }, [pluginList, filters]) + }, [pluginList.length, filters]) return ( -
+
{/* skeleton */}
{Array.from({ length: 20 }).fill(0).map((_, i) => (