From 2d76e9bc5f78f98d22fc5cbaf8f33fb09199f326 Mon Sep 17 00:00:00 2001 From: Trezy Date: Sun, 22 Mar 2026 11:37:18 -0500 Subject: [PATCH] fix: prevent errors on plugin page when user hasn't set up encryption tokens --- web/src/app/dashboard/settings/plugins/page.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/src/app/dashboard/settings/plugins/page.tsx b/web/src/app/dashboard/settings/plugins/page.tsx index 895f04a..25473a7 100644 --- a/web/src/app/dashboard/settings/plugins/page.tsx +++ b/web/src/app/dashboard/settings/plugins/page.tsx @@ -66,8 +66,8 @@ export default function PluginsPage() { const load = useCallback(async () => { try { const response = await getPlugins(); - setPlugins(response.plugins); - setEncryptionConfigured(response.encryption_configured); + setPlugins(response.plugins ?? []); + setEncryptionConfigured(response.encryption_configured ?? false); setError(null); } catch (e) { setError(e instanceof Error ? e.message : String(e)); -- 2.51.2