forked from 0x2620/pandora
pandora..findListSelect can be undefined
This commit is contained in:
parent
389619feaf
commit
7e3e0a5f6d
1 changed files with 2 additions and 1 deletions
|
@ -124,7 +124,8 @@ pandora.ui.findElement = function() {
|
||||||
pandora.api.autocomplete({
|
pandora.api.autocomplete({
|
||||||
key: key,
|
key: key,
|
||||||
query: {
|
query: {
|
||||||
conditions: pandora.$ui.findListSelect.value() == 'list'
|
conditions: pandora.$ui.findListSelect
|
||||||
|
&& pandora.$ui.findListSelect.value() == 'list'
|
||||||
? [{key: 'list', value: pandora.user.ui._list, operator: '=='}] : [],
|
? [{key: 'list', value: pandora.user.ui._list, operator: '=='}] : [],
|
||||||
operator: '&'
|
operator: '&'
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue