mirror of https://github.com/status-im/consul.git
ui: Check for a non-existent items argument/attribute within DataCollection (#9662)
This commit is contained in:
parent
7c277aa85b
commit
19fd9a87d1
|
@ -104,10 +104,11 @@ export default class DataCollectionComponent extends Component {
|
||||||
// TODO: Temporary little hack to ensure we detect DataSource proxy
|
// TODO: Temporary little hack to ensure we detect DataSource proxy
|
||||||
// objects but not any other special Ember Proxy object like ember-data
|
// objects but not any other special Ember Proxy object like ember-data
|
||||||
// things. Remove this once we no longer need the Proxies
|
// things. Remove this once we no longer need the Proxies
|
||||||
if (this.args.items.dispatchEvent === 'function') {
|
const items = this.args.items || [];
|
||||||
return this.args.items.content;
|
if (typeof items.dispatchEvent === 'function') {
|
||||||
|
return items.content;
|
||||||
}
|
}
|
||||||
return this.args.items;
|
return items;
|
||||||
}
|
}
|
||||||
|
|
||||||
@action
|
@action
|
||||||
|
|
Loading…
Reference in New Issue