diff options
Diffstat (limited to 'src/data')
-rw-r--r-- | src/data/things/composite.js | 19 |
1 files changed, 8 insertions, 11 deletions
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: () => [ { |