return err fixed
This commit is contained in:
parent
48d7ac9661
commit
8faa39f39c
@ -59,5 +59,9 @@ function handleGlobalCheck(data) {
|
||||
|
||||
function filterGarageEntry(data) {
|
||||
const keyword = Conf.keywords.garage
|
||||
return data.whatswrong.filter(function(entry) { return entry.msgOnErr.indexOf(keyword) >= 0 })
|
||||
if(data.whatswrong) {
|
||||
return [];
|
||||
} else {
|
||||
return data.whatswrong.filter(function(entry) { return entry.msgOnErr.indexOf(keyword) >= 0 })
|
||||
}
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user