Helper class used
This commit is contained in:
parent
7df02b8d9a
commit
7e17b3475b
@ -59,9 +59,9 @@ function handleGlobalCheck(data) {
|
||||
|
||||
function filterGarageEntry(data) {
|
||||
const keyword = Conf.keywords.garage
|
||||
if(data.whatswrong !== undefined) {
|
||||
return [];
|
||||
} else {
|
||||
if(Helper.isDefinedAndNotNull(data.whatswrong)) {
|
||||
return data.whatswrong.filter(function(entry) { return entry.msgOnErr.indexOf(keyword) >= 0 })
|
||||
} else {
|
||||
return [];
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user