From f439f5888b6fb7b1df74f8934e9ec87eac4d6090 Mon Sep 17 00:00:00 2001 From: Dev Date: Thu, 7 Mar 2024 13:44:43 +0000 Subject: [PATCH] Fix warning being logged constantly --- project/src/helpers/ItemHelper.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/project/src/helpers/ItemHelper.ts b/project/src/helpers/ItemHelper.ts index 2a5d18d0..27a17a8d 100644 --- a/project/src/helpers/ItemHelper.ts +++ b/project/src/helpers/ItemHelper.ts @@ -1648,7 +1648,11 @@ export class ItemHelper if (!item.upd) { item.upd = {}; - this.logger.warning(warningMessageWhenMissing); + + if (warningMessageWhenMissing) + { + this.logger.warning(warningMessageWhenMissing); + } return true; }