Explicitly cast allowed values type to string[].
This commit is contained in:
Родитель
d16d4bdf39
Коммит
d425badc3f
|
@ -97,9 +97,9 @@ class CascadingFieldsService {
|
|||
typeof cascade.cascades[fieldValue][field] === 'string' &&
|
||||
cascade.cascades[fieldValue][field] === FieldOptionsFlags.All
|
||||
) {
|
||||
cascadeOptions = (await this.workItemService.getAllowedFieldValues(
|
||||
field
|
||||
)) as string[];
|
||||
cascadeOptions = (await this.workItemService.getAllowedFieldValues(field)).map(
|
||||
value => value.toString()
|
||||
);
|
||||
} else {
|
||||
cascadeOptions = cascade.cascades[fieldValue][field] as string[];
|
||||
}
|
||||
|
@ -113,7 +113,6 @@ class CascadingFieldsService {
|
|||
})
|
||||
)
|
||||
);
|
||||
|
||||
return fieldValues;
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче