Skip to content

Commit acc8ae8

Browse files
committed
Fix createNode properties label with unknown properties
This is an edge case. `DerivativeScriptureProduct.isOverriding` triggers this. Since it's not defined in the DTO, it doesn't have a key assigned in the property map.
1 parent 824c96b commit acc8ae8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/database/query/create-node.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ export const createNode = async <TResourceStatic extends ResourceShape<any>>(
7474
...entries(restInitialProps).map(([prop, value]) => [
7575
node('node'),
7676
relation('out', '', prop, { active: true, createdAt }),
77-
node('', res.dbPropLabels[prop], {
77+
node('', res.dbPropLabels[prop] ?? ['Property'], {
7878
createdAt,
7979
value,
8080
}),

0 commit comments

Comments
 (0)