File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed
src/components/accessories/admin/operations Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -126,7 +126,7 @@ const OperationForm: FC<IOperationProps> = ({
126126
127127 const handleCheckboxChange = useCallback (
128128 ( fieldName : string ) => ( value : boolean ) => {
129- setFieldValue ( fieldName , value ? "0" : "1" ) ;
129+ setFieldValue ( fieldName , ! ! value ? 1 : 0 ) ;
130130 } ,
131131 [ setFieldValue ]
132132 ) ;
Original file line number Diff line number Diff line change @@ -5,7 +5,10 @@ import { useTranslation } from "react-i18next";
55import checkIcon from "../../../../../assets/check-icon.png" ;
66import { OperationDTO , OperationDTOOpeForEnum } from "../../../../../generated" ;
77import { scrollToElement } from "../../../../../libraries/uiUtils/scrollToElement" ;
8- import { deleteOperationReset } from "../../../../../state/operations" ;
8+ import {
9+ deleteOperationReset ,
10+ getOperations ,
11+ } from "../../../../../state/operations" ;
912import ConfirmationDialog from "../../../confirmationDialog/ConfirmationDialog" ;
1013import InfoBox from "../../../infoBox/InfoBox" ;
1114import { TFilterField } from "../../../table/filter/types" ;
@@ -169,6 +172,7 @@ export const OperationTable: FunctionComponent<IOwnProps> = ({
169172 primaryButtonLabel = "Ok"
170173 handlePrimaryButtonClick = { ( ) => {
171174 dispatch ( deleteOperationReset ( ) ) ;
175+ dispatch ( getOperations ( ) ) ;
172176 } }
173177 handleSecondaryButtonClick = { ( ) => ( { } ) }
174178 />
You can’t perform that action at this time.
0 commit comments