From eb46653ec816674b9844e85b039fbd0004c92064 Mon Sep 17 00:00:00 2001 From: Poff Poffenberger Date: Wed, 25 Mar 2020 17:12:39 -0500 Subject: [PATCH] [Canvas] Fix map embeddables not showing up on PDF reports (#61149) (#61345) * Allow embeddables to track their own render complete for report generation in canvas * Updating following consult with reporting team Co-authored-by: Elastic Machine Co-authored-by: Elastic Machine --- .../canvas/public/apps/export/export/export_app.js | 3 ++- .../element_share_container/element_share_container.js | 8 ++++++-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/x-pack/legacy/plugins/canvas/public/apps/export/export/export_app.js b/x-pack/legacy/plugins/canvas/public/apps/export/export/export_app.js index 9b198cee34aa..7537f8eaa903 100644 --- a/x-pack/legacy/plugins/canvas/public/apps/export/export/export_app.js +++ b/x-pack/legacy/plugins/canvas/public/apps/export/export/export_app.js @@ -28,6 +28,7 @@ export class ExportApp extends React.PureComponent { const { workpad, selectedPageId } = this.props; const { pages, height, width } = workpad; const activePage = pages.find(page => page.id === selectedPageId); + const pageElementCount = activePage.elements.length; return (
@@ -39,7 +40,7 @@ export class ExportApp extends React.PureComponent {
{Style.it( workpad.css, -
+
(this.sharedItemRef = ref)} >