From a06d554a9b739990e46ae4828203b11060197eb0 Mon Sep 17 00:00:00 2001 From: Boris Vasilenko Date: Mon, 22 Apr 2024 22:51:03 +0300 Subject: [PATCH] Set transfers to null if missing --- .../cloudsync/cloudsync-form/cloudsync-form.component.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/app/pages/task-calendar/cloudsync/cloudsync-form/cloudsync-form.component.ts b/src/app/pages/task-calendar/cloudsync/cloudsync-form/cloudsync-form.component.ts index 1438697b75c..f37fe31cf2c 100644 --- a/src/app/pages/task-calendar/cloudsync/cloudsync-form/cloudsync-form.component.ts +++ b/src/app/pages/task-calendar/cloudsync/cloudsync-form/cloudsync-form.component.ts @@ -836,6 +836,10 @@ export class CloudsyncFormComponent { value.bwlimit = this.handleBwlimit(value.bwlimit); } + if (value.transfers === '') { + value.transfers = null; + } + if (!this.formGroup.valid) { return; }