From c250e8bff2d4b9afdfaed049e55ec10c2f853c9f Mon Sep 17 00:00:00 2001 From: yflory Date: Mon, 24 Jun 2024 11:13:42 +0200 Subject: [PATCH] Don't push disabled apps decree if the value didn't change --- lib/decrees.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/decrees.js b/lib/decrees.js index 5bbb89907..e48389af5 100644 --- a/lib/decrees.js +++ b/lib/decrees.js @@ -227,8 +227,8 @@ commands.SET_SUPPORT_MAILBOX = makeGenericSetter('supportMailbox', function (arg commands.DISABLE_APPS = function (Env, args) { if (!Array.isArray(args)) { throw new Error("INVALID_ARGS"); } - const appsToDisable = args; - Env.appsToDisable = appsToDisable; + if (JSON.stringify(args) === JSON.stringify(Env.appsToDisable)) { return false; } + Env.appsToDisable = args; return true; };