File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
apps/builder/src/features/editor/components Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ import { useRouter } from 'next/router'
26
26
27
27
export const BoardMenuButton = ( props : FlexProps ) => {
28
28
const { query } = useRouter ( )
29
- const { typebot } = useTypebot ( )
29
+ const { typebot, currentUserMode } = useTypebot ( )
30
30
const { user } = useUser ( )
31
31
const [ isDownloading , setIsDownloading ] = useState ( false )
32
32
const { isOpen, onOpen, onClose } = useDisclosure ( )
@@ -78,9 +78,11 @@ export const BoardMenuButton = (props: FlexProps) => {
78
78
< MenuItem icon = { < SettingsIcon /> } onClick = { onOpen } >
79
79
{ t ( 'editor.graph.menu.editorSettingsItem.label' ) }
80
80
</ MenuItem >
81
- < MenuItem icon = { < DownloadIcon /> } onClick = { downloadFlow } >
82
- { t ( 'editor.graph.menu.exportFlowItem.label' ) }
83
- </ MenuItem >
81
+ { currentUserMode !== 'guest' ? (
82
+ < MenuItem icon = { < DownloadIcon /> } onClick = { downloadFlow } >
83
+ { t ( 'editor.graph.menu.exportFlowItem.label' ) }
84
+ </ MenuItem >
85
+ ) : null }
84
86
</ MenuList >
85
87
< EditorSettingsModal isOpen = { isOpen } onClose = { onClose } />
86
88
</ Menu >
You can’t perform that action at this time.
0 commit comments