File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed
src/Pages/GlobalConfigurations/BuildInfra Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -275,6 +275,7 @@ const useBuildInfraForm = ({
275
275
}
276
276
277
277
case BuildInfraProfileInputActionType . ADD_TARGET_PLATFORM : {
278
+ const { handleCaptureSnapshot } = data
278
279
// If no target platform is given error will be '' so that we won;t show error but capture it
279
280
currentInputErrors [ BuildInfraProfileAdditionalErrorKeysType . TARGET_PLATFORM ] = ! targetPlatform
280
281
? ''
@@ -296,6 +297,8 @@ const useBuildInfraForm = ({
296
297
297
298
return acc
298
299
} , { } as BuildInfraConfigurationMapType )
300
+
301
+ handleCaptureSnapshot ( currentInput )
299
302
break
300
303
}
301
304
Original file line number Diff line number Diff line change @@ -455,7 +455,9 @@ export type HandleProfileInputChangeType =
455
455
| Exclude < BuildInfraInheritActions , BuildInfraInheritActionsOnSubValues >
456
456
| BuildInfraProfileInputActionType . ADD_TARGET_PLATFORM
457
457
| BuildInfraProfileInputActionType . REMOVE_TARGET_PLATFORM
458
- data : ProfileInputDispatchDataType
458
+ data : ProfileInputDispatchDataType & {
459
+ handleCaptureSnapshot : ( data : BuildInfraProfileData ) => void
460
+ }
459
461
}
460
462
| {
461
463
action : BuildInfraInheritActionsOnSubValues
You can’t perform that action at this time.
0 commit comments