From 5ee307dac496b1cc045bd572e7fc4f823aa1e1b3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rn=20Berkefeld?= Date: Wed, 24 Apr 2024 13:45:38 +0200 Subject: [PATCH] #0: ensure we don't try to deploy types that have nothing to deploy --- lib/Deployer.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/Deployer.js b/lib/Deployer.js index 1c8a63eeb..cf923fb95 100644 --- a/lib/Deployer.js +++ b/lib/Deployer.js @@ -267,6 +267,12 @@ class Deployer { this.metadata[type], typeKeyCombo[selectedType] ); + if (!Object.keys(this.metadata[type]).length) { + Util.logger.warn( + `No deployable metadata found for type ${type} for selected keys` + ); + delete this.metadata[type]; + } } } } else {