@@ -6,18 +6,18 @@ import { useTranslation } from "react-i18next";
66import { push } from "connected-react-router" ;
77import { setBPMFormLimit , setBPMFormListPage , setBpmFormSort , setFormDeleteStatus } from "../../../actions/formActions" ;
88import { resetFormProcessData , unPublishForm , getApplicationCount , getProcessDetails } from "../../../apiManager/services/processServices" ;
9- import { fetchBPMFormList } from "../../../apiManager/services/bpmFormServices" ;
9+ import { fetchBPMFormList , fetchFormById } from "../../../apiManager/services/bpmFormServices" ;
1010import { setFormSearchLoading } from "../../../actions/checkListActions" ;
1111import userRoles from "../../../constants/permissions" ;
1212import { HelperServices , StyleServices } from "@formsflow/service" ;
1313import { MULTITENANCY_ENABLED } from "../../../constants/constants" ;
1414import { V8CustomButton , RefreshIcon , NewSortDownIcon , V8CustomDropdownButton , PromptModal } from "@formsflow/components" ;
1515import { deleteForm } from "@aot-technologies/formio-react" ;
16- import { fetchFormById } from "../../../apiManager/services/bpmFormServices" ;
1716import { formCreate } from "../../../apiManager/services/FormServices" ;
1817import { manipulatingFormData } from "../../../apiManager/services/formFormatterService" ;
1918import _cloneDeep from "lodash/cloneDeep" ;
2019import { toast } from "react-toastify" ;
20+ import PropTypes from "prop-types" ;
2121
2222function FormTable ( { isDuplicating, setIsDuplicating, setDuplicateProgress } ) {
2323 const dispatch = useDispatch ( ) ;
@@ -271,7 +271,7 @@ function FormTable({ isDuplicating, setIsDuplicating, setDuplicateProgress }) {
271271 deleteAction ( params . row ) ;
272272 }
273273 } ,
274- className : params . row . status !== "active" ? "delete-dropdown-item " : "" ,
274+ className : params . row . status === "active" ? "" : "delete-dropdown-item " ,
275275 } ,
276276 ] ;
277277 return ( createDesigns || viewDesigns ) && (
@@ -406,4 +406,10 @@ const viewOrEditForm = (formId, path) => {
406406 ) ;
407407}
408408
409+ FormTable . propTypes = {
410+ isDuplicating : PropTypes . bool . isRequired ,
411+ setIsDuplicating : PropTypes . func . isRequired ,
412+ setDuplicateProgress : PropTypes . func . isRequired ,
413+ } ;
414+
409415export default FormTable ;
0 commit comments