Refactor: remove cache before saving shortcuts

This commit is contained in:
igorrCarvalho 2024-06-09 13:40:00 -03:00
commit 9d73489ea9

View file

@ -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),