From 795436d1a3dea986b69be7597f9589929463b7ff Mon Sep 17 00:00:00 2001 From: cristhianzl Date: Fri, 23 Feb 2024 17:30:51 -0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A5=20refactor(genericModal/index.tsx)?= =?UTF-8?q?:=20remove=20unused=20imports=20and=20code=20to=20improve=20cod?= =?UTF-8?q?e=20cleanliness=20and=20performance?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/frontend/src/modals/genericModal/index.tsx | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/frontend/src/modals/genericModal/index.tsx b/src/frontend/src/modals/genericModal/index.tsx index 6a68f6aef..44173057f 100644 --- a/src/frontend/src/modals/genericModal/index.tsx +++ b/src/frontend/src/modals/genericModal/index.tsx @@ -15,7 +15,6 @@ import { import { TypeModal } from "../../constants/enums"; import { postValidatePrompt } from "../../controllers/API"; import useAlertStore from "../../stores/alertStore"; -import useFlowStore from "../../stores/flowStore"; import { genericModalPropsType } from "../../types/components"; import { handleKeyDown } from "../../utils/reactflowUtils"; import { classNames, varHighlightHTML } from "../../utils/utils"; @@ -47,7 +46,6 @@ export default function GenericModal({ const textRef = useRef(null); const divRef = useRef(null); const divRefPrompt = useRef(null); - const unselectAll = useFlowStore((state) => state.unselectAll); function checkVariables(valueToCheck: string): void { const regex = /\{([^{}]+)\}/g; @@ -91,7 +89,6 @@ export default function GenericModal({ useEffect(() => { setInputValue(value); - unselectAll(); }, [value, modalOpen]); const coloredContent = (inputValue || "")