From 75e57b8397b4f6915094391fa2ed49018580ad5f Mon Sep 17 00:00:00 2001 From: koenkk Date: Sat, 16 Dec 2023 09:37:44 +0100 Subject: [PATCH] fix(ignore): fix 172a386bdfced76f9d965262b04f9d52fc67c56d --- src/lib/utils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/utils.ts b/src/lib/utils.ts index 086fc2f576f21..eee3da8206dd1 100644 --- a/src/lib/utils.ts +++ b/src/lib/utils.ts @@ -72,7 +72,7 @@ export function hasAlreadyProcessedMessage(msg: Fz.Message, model: Definition, I key = key || msg.device.ieeeAddr; if (transactionStore[key]?.includes(currentID)) return true; // Keep last 5, as they might come in different order: https://github.com/Koenkk/zigbee2mqtt/issues/20024 - transactionStore[key] = [currentID, ...transactionStore[key]].slice(0, 5); + transactionStore[key] = [currentID, ...(transactionStore[key] ?? [])].slice(0, 5); return false; }