Refactor: remove cache before saving shortcuts
This commit is contained in:
parent
93ba523dee
commit
9d73489ea9
1 changed files with 2 additions and 0 deletions
|
|
@ -86,6 +86,8 @@ export default function EditShortcutButton({
|
||||||
title: `${shortcut[0]} shortcut successfully changed`,
|
title: `${shortcut[0]} shortcut successfully changed`,
|
||||||
});
|
});
|
||||||
setKey(null);
|
setKey(null);
|
||||||
|
localStorage.removeItem("langflow-shortcuts");
|
||||||
|
localStorage.removeItem("langflow-UShortcuts");
|
||||||
localStorage.setItem(
|
localStorage.setItem(
|
||||||
"langflow-shortcuts",
|
"langflow-shortcuts",
|
||||||
JSON.stringify(newCombination),
|
JSON.stringify(newCombination),
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue