web/admin: fix flow stage binding update failing (#5287)
Signed-off-by: Jens Langhammer <jens@goauthentik.io>
This commit is contained in:
parent
2502a7cece
commit
5f99887b50
|
@ -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) {
|
||||
|
|
Reference in New Issue