Use dynamic data passing only when needed

[MAILPOET-3193]
This commit is contained in:
Pavel Dohnal
2020-10-22 13:24:30 +02:00
committed by Veljko V
parent cf44dfac18
commit 442a450d00

View File

@@ -178,7 +178,10 @@ class Selection extends React.Component {
},
minimumInputLength: remoteQuery.minimumInputLength || 2,
});
} else {
} else if (
(this.props.field.getCount !== undefined)
|| (this.props.field.getTag !== undefined)
) {
const items = this.getItems(this.props.field);
let selectedValues = this.getSelectedValues() || [];
if (!Array.isArray(selectedValues)) {