@@ -17,7 +17,7 @@ const ContextSelectModal: React.FC<ContextSelectModalProps> = ({ show, onHide, o
1717 const { units, loading : loadingUnits } = useUnit ( ) ;
1818
1919
20- const [ incidentId , setIncidentIdState ] = useState < string | null > ( null ) ;
20+ const [ incidentId , setIncidentId ] = useState < string | null > ( null ) ;
2121 const [ periodId , setPeriodId ] = useState < string | null > ( null ) ;
2222 const [ unitId , setUnitId ] = useState < string | null > ( null ) ;
2323
@@ -48,7 +48,7 @@ const ContextSelectModal: React.FC<ContextSelectModalProps> = ({ show, onHide, o
4848
4949 useEffect ( ( ) => {
5050 if ( show && contextReady ) {
51- setIncidentIdState ( selectedIncident ? selectedIncident . incidentId : null ) ;
51+ setIncidentId ( selectedIncident ? selectedIncident . incidentId : null ) ;
5252 setPeriodId ( selectedPeriod ? selectedPeriod . periodId : null ) ;
5353 setUnitId ( selectedUnit ? selectedUnit . unitId : null ) ;
5454 }
@@ -70,7 +70,7 @@ const ContextSelectModal: React.FC<ContextSelectModalProps> = ({ show, onHide, o
7070 } ;
7171
7272 const handleReset = ( ) => {
73- setIncidentIdState ( null ) ;
73+ setIncidentId ( null ) ;
7474 setPeriodId ( null ) ;
7575 setUnitId ( null ) ;
7676 onSelect ( null , null , null ) ;
@@ -101,7 +101,7 @@ const ContextSelectModal: React.FC<ContextSelectModalProps> = ({ show, onHide, o
101101 options = { incidents }
102102 value = { incidentId }
103103 onSelect = { id => {
104- setIncidentIdState ( id ) ;
104+ setIncidentId ( id ) ;
105105 setUnitId ( null ) ;
106106 setPeriodId ( null ) ;
107107 } }
0 commit comments