web/admin: fix flow stage binding update failing (#5287)

Signed-off-by: Jens Langhammer <jens@goauthentik.io>
This commit is contained in:
Jens L 2023-04-18 13:10:50 +02:00 committed by GitHub
parent 2502a7cece
commit 5f99887b50
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 2 deletions

View File

@ -47,11 +47,12 @@ export class StageBindingForm extends ModelForm<FlowStageBinding, string> {
return t`Successfully created binding.`;
}
}
send(data: FlowStageBinding): Promise<unknown> {
if (this.instance?.pk) {
return new FlowsApi(DEFAULT_CONFIG).flowsBindingsUpdate({
return new FlowsApi(DEFAULT_CONFIG).flowsBindingsPartialUpdate({
fsbUuid: this.instance.pk,
flowStageBindingRequest: data,
patchedFlowStageBindingRequest: data,
});
} else {
if (this.targetPk) {