Skip to content

Commit

Permalink
Fix undefined reporting
Browse files Browse the repository at this point in the history
  • Loading branch information
Heenawter committed Oct 7, 2024
1 parent 9ccfb0c commit 452bd89
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions x-pack/plugins/canvas/public/services/kibana_services.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,11 @@ export const setKibanaServices = (
embeddableService = deps.embeddable;
expressionsService = deps.expressions;
presentationUtilService = deps.presentationUtil;
reportingService =
deps.reporting.usesUiCapabilities() &&
!Boolean(kibanaCore.application.capabilities.canvas?.generatePdf)
? undefined
: deps.reporting;
reportingService = Boolean(
deps.reporting?.usesUiCapabilities() && !kibanaCore.application.capabilities.canvas?.generatePdf
)
? undefined
: deps.reporting;
spacesService = deps.spaces;
uiActionsService = deps.uiActions;
visualizationsService = deps.visualizations;
Expand Down

0 comments on commit 452bd89

Please sign in to comment.