mirror of
https://github.com/supermemoryai/supermemory.git
synced 2026-10-21 05:18:00 +00:00
fix(web): preserve plugin refresh error cause
This commit is contained in:
parent
bad873c566
commit
cd3af2ecb7
1 changed files with 2 additions and 1 deletions
|
|
@ -2839,7 +2839,8 @@ export function IntegrationsView({
|
|||
if (result.error)
|
||||
throw new Error(result.error.message, { cause: result.error })
|
||||
const refreshed = await refetchKeys()
|
||||
if (refreshed.error) throw refreshed.error
|
||||
if (refreshed.error)
|
||||
throw new Error(refreshed.error.message, { cause: refreshed.error })
|
||||
toast.success("Plugin disconnected")
|
||||
} catch {
|
||||
toast.error("Failed to disconnect plugin")
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue