Skip to content

Commit

Permalink
JNG-5977 single access export (#471)
Browse files Browse the repository at this point in the history
  • Loading branch information
noherczeg committed Oct 16, 2024
1 parent 6134909 commit 427df22
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ const {{ simpleActionDefinitionName action.actionDefinition }} = async (queryCus
try {
setIsLoading(true);
{{# if container.isRelationSelector }}
const response = await {{ getServiceImplForPage page }}.export(undefined, queryCustomizer);
const response = await {{ getServiceImplForPage page }}.export(owner.current, queryCustomizer);
{{ else }}
const response = await {{ getServiceImplForPage page }}.export{{# if action.targetDataElement }}{{ firstToUpper action.targetDataElement.name }}{{/ if }}({{# if (pageHasSignedId page) }}{ __signedIdentifier: signedIdentifier } as any{{ else }}undefined{{/ if }}, queryCustomizer);
const response = await {{ getServiceImplForPage page }}.export{{# if action.targetDataElement }}{{ firstToUpper action.targetDataElement.name }}{{/ if }}({{# if (pageHasSignedId page) }}{ __signedIdentifier: signedIdentifier } as any{{ else }}owner.current{{/ if }}, queryCustomizer);
{{/ if }}

exportFile(response);
Expand Down

0 comments on commit 427df22

Please sign in to comment.