Skip to content

Commit 7530531

Browse files
committed
[UXP-243] fix build
1 parent 992aa22 commit 7530531

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

src/app/shared/form/builder/ds-dynamic-form-ui/models/array-group/dynamic-form-array.component.spec.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ describe('DsDynamicFormArrayComponent', () => {
9191
relationshipConfig: undefined,
9292
submissionId: '1234',
9393
isDraggable: true,
94+
openType: false,
9495
groupFactory: () => {
9596
return [
9697
new DynamicInputModel({ id: 'testFormRowArrayGroupInput' }),

src/app/shared/form/builder/ds-dynamic-form-ui/models/scrollable-dropdown/dynamic-scrollable-dropdown.component.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ import { CacheableObject } from '../../../../../../core/cache/cacheable-object.m
3333
import { FormBuilderService } from '../../../form-builder.service';
3434
import { SubmissionService } from '../../../../../../submission/submission.service';
3535
import { RemoteData } from '../../../../../../core/data/remote-data';
36+
import { VocabularyEntry } from '../../../../../../core/submission/vocabularies/models/vocabulary-entry.model';
3637

3738
/**
3839
* Component representing a dropdown input field
@@ -182,7 +183,7 @@ export class DsDynamicScrollableDropdownComponent extends DsDynamicVocabularyCom
182183
const isLastPage = this.pageInfo.currentPage === this.pageInfo.totalPages;
183184
const modelValue: any = this.model.value;
184185
if (isLastPage && isNotEmpty(modelValue?.value)) {
185-
const isCustomValue = isEmpty(this.optionsList.filter(element => element.value === modelValue.value));
186+
const isCustomValue = isEmpty(this.optionsList.filter((element: VocabularyEntry) => element.value === modelValue.value));
186187
if (isCustomValue) {
187188
const object = this.createVocabularyObject(modelValue.display, modelValue.value, undefined);
188189
this.optionsList.push(object);
@@ -367,7 +368,7 @@ export class DsDynamicScrollableDropdownComponent extends DsDynamicVocabularyCom
367368
this.addButtonDisabled = true;
368369
if (this.otherListEntry.toString() !== '') {
369370
if (this.optionsList.length > 0) {
370-
this.optionsList.forEach(element => {
371+
this.optionsList.forEach((element: VocabularyEntry) => {
371372
if ((element.display.toLowerCase() === this.otherListEntry.toLowerCase()) ||
372373
(element.value?.toLowerCase() === this.otherListEntry.toLowerCase()) ||
373374
(this.otherListEntry.toLowerCase() === 'other')) {

0 commit comments

Comments
 (0)