Skip to content

Commit 621df8b

Browse files
committed
feat: add handleCaptureSnapshot to ADD_TARGET_PLATFORM action
1 parent e54169d commit 621df8b

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

src/Pages/GlobalConfigurations/BuildInfra/UseBuildInfraForm.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -275,6 +275,7 @@ const useBuildInfraForm = ({
275275
}
276276

277277
case BuildInfraProfileInputActionType.ADD_TARGET_PLATFORM: {
278+
const { handleCaptureSnapshot } = data
278279
// If no target platform is given error will be '' so that we won;t show error but capture it
279280
currentInputErrors[BuildInfraProfileAdditionalErrorKeysType.TARGET_PLATFORM] = !targetPlatform
280281
? ''
@@ -296,6 +297,8 @@ const useBuildInfraForm = ({
296297

297298
return acc
298299
}, {} as BuildInfraConfigurationMapType)
300+
301+
handleCaptureSnapshot(currentInput)
299302
break
300303
}
301304

src/Pages/GlobalConfigurations/BuildInfra/types.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -455,7 +455,9 @@ export type HandleProfileInputChangeType =
455455
| Exclude<BuildInfraInheritActions, BuildInfraInheritActionsOnSubValues>
456456
| BuildInfraProfileInputActionType.ADD_TARGET_PLATFORM
457457
| BuildInfraProfileInputActionType.REMOVE_TARGET_PLATFORM
458-
data: ProfileInputDispatchDataType
458+
data: ProfileInputDispatchDataType & {
459+
handleCaptureSnapshot: (data: BuildInfraProfileData) => void
460+
}
459461
}
460462
| {
461463
action: BuildInfraInheritActionsOnSubValues

0 commit comments

Comments
 (0)