Skip to content

Commit 22b23a7

Browse files
committed
Add annotation field to the $lookup helper's resolved actions
The $action helper returns the action object for the PRINT_CERTIFICATE action. However, when $lookup tried to resolve properties from that action object, it was creating a resolvedAction object that didn't include the annotation field, even though annotation is a valid property of all actions (it's defined in the ActionBase schema).
1 parent 9265bb3 commit 22b23a7

File tree

1 file changed

+2
-1
lines changed
  • packages/client/src/v2-events/features/events/actions/print-certificate

1 file changed

+2
-1
lines changed

packages/client/src/v2-events/features/events/actions/print-certificate/pdfUtils.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,8 @@ export function compileSvg({
363363
adminLevels
364364
}
365365
),
366-
createdByRole: action.data.createdByRole
366+
createdByRole: action.data.createdByRole,
367+
annotation: action.data.annotation
367368
}
368369

369370
return getMixedPath(resolvedAction, propertyPath)

0 commit comments

Comments
 (0)