Fix multi-text editor

This commit is contained in:
Sipke Schoorstra 2021-05-08 11:58:43 +02:00
parent fb767c13f0
commit ab8c092887
2 changed files with 3 additions and 3 deletions

View file

@ -62,8 +62,8 @@ export class ElsaMultiTextProperty {
const propertyOptions = this.createKeyValueOptions(items);
const elsaInputTags = valueType === 'multi-text' ?
<elsa-input-tags values={values} fieldId={fieldId} fieldName={fieldName} onValueChanged={e => this.onValueChanged(e.detail)} /> :
<elsa-input-tags-dropdown dropdownValues={propertyOptions} values={values} fieldId={fieldId} fieldName={fieldName} onValueChanged={e => this.onValueChanged(e.detail)} />;
<elsa-input-tags-dropdown dropdownValues={propertyOptions} values={values} fieldId={fieldId} fieldName={fieldName} onValueChanged={e => this.onValueChanged(e.detail)} /> :
<elsa-input-tags values={values} fieldId={fieldId} fieldName={fieldName} onValueChanged={e => this.onValueChanged(e.detail)} />;
return (
<elsa-property-editor propertyDescriptor={propertyDescriptor}

View file

@ -10,7 +10,7 @@ export async function getSelectListItems(serverUrl: string, propertyDescriptor:
const options = propertyDescriptor.options;
let items = [];
if (!!options.runtimeSelectListItemsProviderType) {
if (!!options && options.runtimeSelectListItemsProviderType) {
items = await fetchRuntimeItems(serverUrl, options);
} else {
items = options as Array<any> || [];