From 8c7266da6fca447c136a07153ad619734b671ea6 Mon Sep 17 00:00:00 2001 From: Tara Epp <102187683+taraepp@users.noreply.github.com> Date: Tue, 24 Dec 2024 17:15:39 +0000 Subject: [PATCH] clean up unused variables --- .../src/components/mine/Permit/PermitConditionForm.tsx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/services/core-web/src/components/mine/Permit/PermitConditionForm.tsx b/services/core-web/src/components/mine/Permit/PermitConditionForm.tsx index 5bed28b14d..145e9ebb6a 100644 --- a/services/core-web/src/components/mine/Permit/PermitConditionForm.tsx +++ b/services/core-web/src/components/mine/Permit/PermitConditionForm.tsx @@ -1,7 +1,7 @@ import React, { FC, useState } from "react"; -import { useDispatch, useSelector } from "react-redux"; +import { useDispatch } from "react-redux"; import { useParams } from "react-router-dom"; -import { change, Field, getFormValues, reset } from "redux-form"; +import { change, Field, reset } from "redux-form"; import { Row, Col, Button } from "antd"; import { faArrowDown, @@ -63,7 +63,6 @@ const PermitConditionForm: FC = ({ const [isEditMode, setIsEditMode] = useState(false); // the form fails to re-initialize when the category is changed, so concatenating it forces it to make a new one const formName = `${FORM.EDIT_PERMIT_CONDITION}_${condition.permit_condition_id}_${condition.condition_category_code}`; - const formValues = useSelector(getFormValues(formName)) as IPermitCondition; const startEdit = () => { onEdit();