From 5f99887b50e3fe2c410e23c1921a9c35a6c608e7 Mon Sep 17 00:00:00 2001 From: Jens L Date: Tue, 18 Apr 2023 13:10:50 +0200 Subject: [PATCH] web/admin: fix flow stage binding update failing (#5287) Signed-off-by: Jens Langhammer --- web/src/admin/flows/StageBindingForm.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/web/src/admin/flows/StageBindingForm.ts b/web/src/admin/flows/StageBindingForm.ts index fd927c4b0..2565b122a 100644 --- a/web/src/admin/flows/StageBindingForm.ts +++ b/web/src/admin/flows/StageBindingForm.ts @@ -47,11 +47,12 @@ export class StageBindingForm extends ModelForm { return t`Successfully created binding.`; } } + send(data: FlowStageBinding): Promise { 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) {