From 77192e356bee86fa3cb0f4fab21d8903cd5a50be Mon Sep 17 00:00:00 2001 From: Kaosiso Ezealigo Date: Thu, 19 Dec 2024 05:15:01 +0100 Subject: [PATCH] enhancement(frontend): set backup of provider keys in localStorage --- agenta-web/src/hooks/useVaultSecret.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/agenta-web/src/hooks/useVaultSecret.ts b/agenta-web/src/hooks/useVaultSecret.ts index 52c7dbbf7..aee0445a8 100644 --- a/agenta-web/src/hooks/useVaultSecret.ts +++ b/agenta-web/src/hooks/useVaultSecret.ts @@ -59,6 +59,8 @@ export const useVaultSecret = () => { } } + localStorage.setItem(`${llmAvailableProvidersToken}Backup`, localStorageProviders) + localStorage.removeItem(llmAvailableProvidersToken) } } catch (error) {