diff --git a/src/app/components/core/configuration-manager/view-config-item/view-config-item.component.ts b/src/app/components/core/configuration-manager/view-config-item/view-config-item.component.ts index a195a91b3..d897ae7f8 100644 --- a/src/app/components/core/configuration-manager/view-config-item/view-config-item.component.ts +++ b/src/app/components/core/configuration-manager/view-config-item/view-config-item.component.ts @@ -215,7 +215,8 @@ export class ViewConfigItemComponent implements OnInit, OnChanges, OnDestroy { }) : []; this.filesToUpload = changedConfigValues.map((d) => { - if (d.type === 'script') { + // validate empty value + if (d.type === 'script' && !(/^(""|''|)$/.test(d.value))) { return this.createFileToUpload(d); } }).filter(f => f !== undefined);