diff --git a/src/frontend/src/components/chatComponent/index.tsx b/src/frontend/src/components/chatComponent/index.tsx index 6fc0da4b9..f0d7922d4 100644 --- a/src/frontend/src/components/chatComponent/index.tsx +++ b/src/frontend/src/components/chatComponent/index.tsx @@ -30,11 +30,11 @@ export default function FlowToolbar(): JSX.Element { const openPlayground = useShortcutsStore((state) => state.open); const api = useShortcutsStore((state) => state.api); - const share = useShortcutsStore((state) => state.share); + const flow = useShortcutsStore((state) => state.flow); useHotkeys(openPlayground, handleChatWShortcut, { preventDefault }); useHotkeys(api, handleAPIWShortcut, { preventDefault }); - useHotkeys(share, handleShareWShortcut, { preventDefault }); + useHotkeys(flow, handleShareWShortcut, { preventDefault }); const [open, setOpen] = useState(false); const [openCodeModal, setOpenCodeModal] = useState(false); @@ -55,7 +55,7 @@ export default function FlowToolbar(): JSX.Element { component={currentFlow!} disabled={!hasApiKey || !validApiKey || !hasStore} open={openShareModal} - setOpen={setOpen} + setOpen={setOpenShareModal} >