fix missing matrices array in getObjectTagsFromMatrices

node-20
Moe 2023-09-17 07:36:10 -07:00
parent dcd69e3c09
commit cfa9c926db
1 changed files with 1 additions and 1 deletions

View File

@ -837,7 +837,7 @@ module.exports = (s,config,lang) => {
if(d.details.reason === 'motion'){
return [getTagWithIcon(lang.Motion)]
}else{
const matrices = d.details.matrices
const matrices = d.details.matrices || []
return [...new Set(matrices.map(matrix => getTagWithIcon(matrix.tag)))];
}
}