add NPE check for makeProps

This commit is contained in:
Nolan Lawson 2018-02-23 17:54:16 -08:00
parent 2fd1f872c5
commit ae04fddd68
2 changed files with 8 additions and 4 deletions

View file

@ -17,8 +17,10 @@
async oncreate() {
let makeProps = this.get('makeProps')
let key = this.get('key')
if (makeProps) {
let props = await makeProps(key)
this.set({props: props})
}
},
components: {
PseudoVirtualListItem

View file

@ -12,8 +12,10 @@
async oncreate() {
let makeProps = this.get('makeProps')
let key = this.get('key')
if (makeProps) {
let props = await makeProps(key)
this.set({props: props})
}
},
components: {
VirtualListItem