From 9d73489ea9799d5d1c57c2c500d598cf31b939aa Mon Sep 17 00:00:00 2001 From: igorrCarvalho Date: Sun, 9 Jun 2024 13:40:00 -0300 Subject: [PATCH] Refactor: remove cache before saving shortcuts --- .../pages/ShortcutsPage/EditShortcutButton/index.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/frontend/src/pages/SettingsPage/pages/ShortcutsPage/EditShortcutButton/index.tsx b/src/frontend/src/pages/SettingsPage/pages/ShortcutsPage/EditShortcutButton/index.tsx index 976df035a..99dd43554 100644 --- a/src/frontend/src/pages/SettingsPage/pages/ShortcutsPage/EditShortcutButton/index.tsx +++ b/src/frontend/src/pages/SettingsPage/pages/ShortcutsPage/EditShortcutButton/index.tsx @@ -86,6 +86,8 @@ export default function EditShortcutButton({ title: `${shortcut[0]} shortcut successfully changed`, }); setKey(null); + localStorage.removeItem("langflow-shortcuts"); + localStorage.removeItem("langflow-UShortcuts"); localStorage.setItem( "langflow-shortcuts", JSON.stringify(newCombination),