Fix error when creating new variable, fixes #1282

This commit is contained in:
Alexander Zobnin
2021-08-31 17:52:10 +03:00
parent 67bc0050f2
commit d389e00865

View File

@@ -90,7 +90,7 @@ export class ZabbixVariableQueryEditor extends PureComponent<VariableQueryProps,
render() { render() {
const { selectedQueryType, legacyQuery, group, host, application, itemTag, item } = this.state; const { selectedQueryType, legacyQuery, group, host, application, itemTag, item } = this.state;
const { datasource } = this.props; const { datasource } = this.props;
const supportsItemTags = datasource.zabbix.isZabbix54OrHigher(); const supportsItemTags = datasource?.zabbix?.isZabbix54OrHigher() || false;
return ( return (
<> <>