From 9abc827fc1961888dda9e8377d3f8141860f26ab Mon Sep 17 00:00:00 2001 From: Giuseppe Digilio Date: Fri, 20 Nov 2020 21:09:12 +0100 Subject: [PATCH] fix for dynamic form after upgrade --- .../collection-dropdown.component.ts | 2 +- ...amic-form-control-container.component.html | 2 +- ...ynamic-form-control-container.component.ts | 3 ++- .../ds-dynamic-form.component.html | 8 +++---- .../ds-dynamic-form.component.ts | 23 +++++++++++++------ .../dynamic-form-array.component.html | 4 ++-- .../dynamic-form-array.component.ts | 6 ++--- .../custom-switch.component.html | 2 +- .../dynamic-date-picker-inline.component.html | 2 +- .../dynamic-date-picker-inline.component.ts | 4 ++-- .../models/disabled/dynamic-disabled.model.ts | 1 - .../models/dynamic-vocabulary.component.ts | 1 - .../dynamic-form-group.component.html | 7 ++---- .../dynamic-form-group.component.ts | 8 +++---- .../models/list/dynamic-list.component.html | 7 +++--- .../models/list/dynamic-list.component.ts | 2 +- .../lookup/dynamic-lookup.component.html | 4 ++-- .../models/lookup/dynamic-lookup.component.ts | 2 +- .../models/lookup/dynamic-lookup.model.ts | 1 - .../onebox/dynamic-onebox.component.html | 4 ++-- .../models/onebox/dynamic-onebox.component.ts | 2 +- ...dynamic-scrollable-dropdown.component.html | 2 +- .../models/tag/dynamic-tag.component.html | 2 +- .../models/tag/dynamic-tag.component.ts | 2 +- .../models/tag/dynamic-tag.model.ts | 1 - .../form/builder/form-builder.service.ts | 5 ++-- .../filter-input-suggestions.component.ts | 4 +++- .../vocabulary-tree-flat-data-source.ts | 2 +- 28 files changed, 59 insertions(+), 54 deletions(-) diff --git a/src/app/shared/collection-dropdown/collection-dropdown.component.ts b/src/app/shared/collection-dropdown/collection-dropdown.component.ts index cd3ed698d9..371c44e025 100644 --- a/src/app/shared/collection-dropdown/collection-dropdown.component.ts +++ b/src/app/shared/collection-dropdown/collection-dropdown.component.ts @@ -193,7 +193,7 @@ export class CollectionDropdownComponent implements OnInit, OnDestroy { collection: { id: collection.id, uuid: collection.id, name: collection.name } }) ))), - reduce((acc: any, value: any) => [...acc, ...value], []), + reduce((acc: any, value: any) => [...acc, value], []), startWith([]) ); this.subs.push(this.searchListCollection$.subscribe( diff --git a/src/app/shared/form/builder/ds-dynamic-form-ui/ds-dynamic-form-control-container.component.html b/src/app/shared/form/builder/ds-dynamic-form-ui/ds-dynamic-form-control-container.component.html index 028299f760..7473f894fa 100644 --- a/src/app/shared/form/builder/ds-dynamic-form-ui/ds-dynamic-form-control-container.component.html +++ b/src/app/shared/form/builder/ds-dynamic-form-ui/ds-dynamic-form-control-container.component.html @@ -1,4 +1,4 @@ -