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 || "")