From cfa9c926db492a31c1fee4a88ac2e694003bf9f1 Mon Sep 17 00:00:00 2001 From: Moe Date: Sun, 17 Sep 2023 07:36:10 -0700 Subject: [PATCH] fix missing matrices array in getObjectTagsFromMatrices --- libs/events/utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/events/utils.js b/libs/events/utils.js index 98e50cdb..22f5bee5 100644 --- a/libs/events/utils.js +++ b/libs/events/utils.js @@ -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)))]; } }