Skip to content

Commit ae113a6

Browse files
emanor-oktaAlexNachbaur
authored andcommitted
fixes some idx calls where the not all post body values are sent
1 parent 603f7bf commit ae113a6

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

Sources/OktaIdxAuth/Internal/Extensions/IDXRemediation+Extensions.swift

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,12 +69,14 @@ extension Remediation.Form.Field {
6969
if let form = self.form,
7070
!form.allFields.isEmpty
7171
{
72+
var nestedJSON = JSON([:])
7273
for field in form.allFields {
7374
guard let nestedResult = try field.formValue else {
7475
continue
7576
}
76-
json[name] = nestedResult
77+
nestedJSON.value += nestedResult
7778
}
79+
json[name] = nestedJSON.value
7880
}
7981

8082
// Named form values that consist of multiple child options

0 commit comments

Comments
 (0)