Removed key and autofocus

This commit is contained in:
Lucas Oliveira 2023-11-23 15:10:35 -03:00
commit 775bcee035
2 changed files with 1 additions and 2 deletions

View file

@ -188,7 +188,6 @@ export default function GenericNode({
{data.node?.flow && inputName ? (
<div>
<InputComponent
autoFocus
onBlur={() => {
setInputName(false);
if (nodeName.trim() !== "") {

View file

@ -20,7 +20,7 @@ export default function FlowPage(): JSX.Element {
{flows.length > 0 &&
tabId !== "" &&
flows.findIndex((flow) => flow.id === tabId) !== -1 && (
<Page key={id} flow={flows.find((flow) => flow.id === tabId)!} />
<Page flow={flows.find((flow) => flow.id === tabId)!} />
)}
<a
target={"_blank"}