From 45e0c7e546a7cdc8558875b1d1cc901727593f21 Mon Sep 17 00:00:00 2001 From: jubnl Date: Thu, 2 Apr 2026 13:58:35 +0200 Subject: [PATCH] fix: replace toast.warn with toast.warning in Immich save handler toast.warn does not exist in the toast library; calling it threw an error that was caught and displayed as "Could not connect to Immich" even when the save succeeded. Fixes #309. --- client/src/pages/SettingsPage.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/pages/SettingsPage.tsx b/client/src/pages/SettingsPage.tsx index 853b04f..fbc9e8b 100644 --- a/client/src/pages/SettingsPage.tsx +++ b/client/src/pages/SettingsPage.tsx @@ -148,7 +148,7 @@ export default function SettingsPage(): React.ReactElement { setSaving(s => ({ ...s, immich: true })) try { const saveRes = await apiClient.put('/integrations/immich/settings', { immich_url: immichUrl, immich_api_key: immichApiKey || undefined }) - if (saveRes.data.warning) toast.warn(saveRes.data.warning) + if (saveRes.data.warning) toast.warning(saveRes.data.warning) toast.success(t('memories.saved')) const res = await apiClient.get('/integrations/immich/status') setImmichConnected(res.data.connected)