« get me outta code hell

data: dynamicThingFromSingleReference -> resolvedReference - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/data/things/composite.js
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2023-09-06 15:42:47 -0300
committer(quasar) nebula <qznebula@protonmail.com>2023-09-06 15:42:47 -0300
commit2437ac322a4c44f2fd9f6a77ac7a65bbb3afc2c0 (patch)
tree3df201d124ccb5cc561017b9c1f4f09090ad3910 /src/data/things/composite.js
parent007c70642a60ed83bd840f550aa06563d4ba6a99 (diff)
data: dynamicThingFromSingleReference -> resolvedReference
Diffstat (limited to 'src/data/things/composite.js')
-rw-r--r--src/data/things/composite.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/data/things/composite.js b/src/data/things/composite.js
index 138814d9..d3f76b11 100644
--- a/src/data/things/composite.js
+++ b/src/data/things/composite.js
@@ -1160,8 +1160,8 @@ export function withResolvedContribs({from, to}) {
 export function withResolvedReference({
   ref,
   data,
-  to,
   find: findFunction,
+  to = '#resolvedReference',
   earlyExitIfNotFound = false,
 }) {
   return compositeFrom(`Thing.composite.withResolvedReference`, [
@@ -1194,8 +1194,8 @@ export function withResolvedReference({
 export function withResolvedReferenceList({
   list,
   data,
-  to,
   find: findFunction,
+  to = '#resolvedReferenceList',
   notFoundMode = 'filter',
 }) {
   if (!['filter', 'exit', 'null'].includes(notFoundMode)) {