Skip to content

Commit b8abab2

Browse files
committed
[UXP-184] Fix lint
1 parent a2df600 commit b8abab2

1 file changed

Lines changed: 3 additions & 7 deletions

File tree

src/app/shared/form/builder/parsers/dropdown-field-parser.ts

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import {Inject} from '@angular/core';
1+
import { Inject } from '@angular/core';
22
import { FormFieldModel } from '../models/form-field.model';
33
import {
44
CONFIG_DATA,
@@ -40,11 +40,8 @@ export class DropdownFieldParser extends FieldParser {
4040
this.setVocabularyOptions(dropdownModelConfig, this.parserOptions.collectionUUID);
4141
if (isNotEmpty(fieldValue)) {
4242
this.setValues(dropdownModelConfig, fieldValue, true);
43-
if (this.configData.input.type === ParserType.OpenDropdown) {
44-
dropdownModelConfig.openType = true;
45-
} else {
46-
dropdownModelConfig.openType = false;
4743
}
44+
dropdownModelConfig.openType = this.configData.input.type === ParserType.OpenDropdown;
4845
layout = {
4946
element: {
5047
control: 'col'
@@ -53,8 +50,7 @@ export class DropdownFieldParser extends FieldParser {
5350
host: 'col'
5451
}
5552
};
56-
const dropdownModel = new DynamicScrollableDropdownModel(dropdownModelConfig, layout);
57-
return dropdownModel;
53+
return new DynamicScrollableDropdownModel(dropdownModelConfig, layout);
5854
} else {
5955
throw Error(`Controlled Vocabulary name is not available. Please check the form configuration file.`);
6056
}

0 commit comments

Comments
 (0)