You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ma...@apache.org on 2023/04/18 22:46:27 UTC

[camel-karavan] 02/02: Fix #723

This is an automated email from the ASF dual-hosted git repository.

marat pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-karavan.git

commit e4da7787490e82d40880fedf0aa917800976a91d
Author: Marat Gubaidullin <ma...@gmail.com>
AuthorDate: Tue Apr 18 18:46:13 2023 -0400

    Fix  #723
---
 karavan-space/src/space/SpacePage.tsx | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/karavan-space/src/space/SpacePage.tsx b/karavan-space/src/space/SpacePage.tsx
index f4489121..2aa44536 100644
--- a/karavan-space/src/space/SpacePage.tsx
+++ b/karavan-space/src/space/SpacePage.tsx
@@ -30,6 +30,7 @@ import UploadIcon from "@patternfly/react-icons/dist/esm/icons/upload-icon";
 import {KaravanDesigner} from "../designer/KaravanDesigner";
 import Editor from "@monaco-editor/react";
 import {UploadModal} from "./UploadModal";
+import {EventBus} from "../designer/utils/EventBus";
 
 interface Props {
     name: string,
@@ -74,9 +75,7 @@ export class SpacePage extends React.Component<Props, State> {
     }
 
     downloadImage = () => {
-        if (this.state.karavanDesignerRef) {
-            this.state.karavanDesignerRef.current.downloadImage();
-        }
+        EventBus.sendCommand("downloadImage");
     }
 
     pushToGithub = () => {