From 17f823bdcf5af4d39ba3dae1f29991665a34a1f5 Mon Sep 17 00:00:00 2001 From: manushak Date: Sat, 21 Sep 2024 09:57:27 +0400 Subject: [PATCH] fix(util): fix ts complainig related to unnecessary assigning pluginParameters to {} --- src/if-run/util/helpers.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/if-run/util/helpers.ts b/src/if-run/util/helpers.ts index 2939022e2..d9520b0d5 100644 --- a/src/if-run/util/helpers.ts +++ b/src/if-run/util/helpers.ts @@ -54,8 +54,10 @@ export const storeAggregationMethods = ( const plugin = pluginStorage.get(pluginName); if ('inputs' in plugin.metadata || 'outputs' in plugin.metadata) { - const pluginParameters = - {...plugin.metadata.inputs, ...plugin.metadata.outputs} || {}; + const pluginParameters = { + ...plugin.metadata.inputs, + ...plugin.metadata.outputs, + }; Object.entries(pluginParameters).forEach( ([parameterName, parameterMetadata]) => {