From 6b36537714a2605e318da9de40a8846634ce30e9 Mon Sep 17 00:00:00 2001 From: islxyqwe Date: Wed, 19 Jun 2024 11:09:12 +0800 Subject: [PATCH] chore: show workflow tab only at debug --- .../src/components/codeExport/index.tsx | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/packages/graphic-walker/src/components/codeExport/index.tsx b/packages/graphic-walker/src/components/codeExport/index.tsx index be182c72..f347d7ce 100644 --- a/packages/graphic-walker/src/components/codeExport/index.tsx +++ b/packages/graphic-walker/src/components/codeExport/index.tsx @@ -50,10 +50,14 @@ const CodeExport: React.FC = observer((props) => { key: 'vega-lite', label: 'Vega-Lite', }, - { - key: 'workflow', - label: 'Workflow', - }, + ...(vizStore.layout.showActions + ? [ + { + key: 'workflow', + label: 'Workflow', + }, + ] + : []), ]; useEffect(() => {