@@ -122,20 +122,13 @@ const Page = ({
122
122
getEmergencyEvacuationApplication ( params . id )
123
123
. then ( ( response ) => {
124
124
const details = response . response
125
- const detailsWithoutNullHasObstacle = {
126
- ...details ,
127
- hasObstaclePersonExist : details . hasObstaclePersonExist || false ,
128
- }
129
- setEmergencyEvacuationApplicationDetails (
130
- detailsWithoutNullHasObstacle
131
- )
132
- setInitialApplicationValues ( detailsWithoutNullHasObstacle )
125
+ setEmergencyEvacuationApplicationDetails ( details )
126
+ setInitialApplicationValues ( details )
133
127
reset ( {
134
- seatingCount : detailsWithoutNullHasObstacle . seatingCount ,
135
- hasObstaclePersonExist :
136
- detailsWithoutNullHasObstacle . hasObstaclePersonExist ,
137
- status : detailsWithoutNullHasObstacle . status ,
138
- notes : detailsWithoutNullHasObstacle . notes ,
128
+ seatingCount : details . seatingCount ,
129
+ hasObstaclePersonExist : details . hasObstaclePersonExist ,
130
+ status : details . status ,
131
+ notes : details . notes ,
139
132
} )
140
133
} )
141
134
. catch ( ( error ) => {
@@ -157,7 +150,7 @@ const Page = ({
157
150
reset ( {
158
151
seatingCount : emergencyEvacuationApplicationDetails . seatingCount ,
159
152
hasObstaclePersonExist :
160
- emergencyEvacuationApplicationDetails . hasObstaclePersonExist || false ,
153
+ emergencyEvacuationApplicationDetails . hasObstaclePersonExist ,
161
154
status : emergencyEvacuationApplicationDetails . status ,
162
155
notes : emergencyEvacuationApplicationDetails . notes ,
163
156
} )
0 commit comments