From ea02f6453f697d1e9fc6cfef2cdcf454c3f4286e Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Fri, 29 Sep 2023 10:09:20 -0300 Subject: data: fix & tidy dynamic outputs in utilities --- src/data/things/composite.js | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) (limited to 'src') diff --git a/src/data/things/composite.js b/src/data/things/composite.js index eb93bd7c..7a3a8319 100644 --- a/src/data/things/composite.js +++ b/src/data/things/composite.js @@ -1938,15 +1938,12 @@ export const withPropertyFromObject = templateCompositeFrom({ outputs: ({ [input.staticDependency('object')]: object, [input.staticValue('property')]: property, - }) => { - return [ - (object && property - ? (object.startsWith('#') - ? `${object}.${property}` - : `#${object}.${property}`) - : '#value'), - ]; - }, + }) => + (object && property + ? (object.startsWith('#') + ? [`${object}.${property}`] + : [`#${object}.${property}`]) + : ['#value']), steps: () => [ { @@ -2018,7 +2015,7 @@ export const withPropertiesFromObject = templateCompositeFrom({ : object ? `${object}.${property}` : `#object.${property}`)) - : '#object'), + : ['#object']), steps: () => [ { @@ -2135,7 +2132,7 @@ export const withPropertiesFromList = templateCompositeFrom({ : list ? `${list}.${property}` : `#list.${property}`)) - : '#lists'), + : ['#lists']), steps: () => [ { -- cgit 1.3.0-6-gf8a5