2
0

fix(editor): 💄 Variable button tiny dropdown

This commit is contained in:
Baptiste Arnaud
2022-05-16 10:06:12 -07:00
parent 55224c9095
commit 0f38141eb1
4 changed files with 4 additions and 5 deletions

View File

@@ -20,7 +20,7 @@ type Props = {
export const VariablesButton = ({ onSelectVariable, ...props }: Props) => { export const VariablesButton = ({ onSelectVariable, ...props }: Props) => {
return ( return (
<Popover matchWidth isLazy> <Popover isLazy placement="bottom-end">
<PopoverTrigger> <PopoverTrigger>
<Flex> <Flex>
<Tooltip label="Insert a variable"> <Tooltip label="Insert a variable">

View File

@@ -105,7 +105,6 @@ export const WorkspaceContext = ({ children }: { children: ReactNode }) => {
mutate({ mutate({
workspaces: [...workspaces, newWorkspace], workspaces: [...workspaces, newWorkspace],
}) })
console.log(newWorkspace)
setCurrentWorkspace(newWorkspace) setCurrentWorkspace(newWorkspace)
} }

View File

@@ -73,8 +73,8 @@ export const ChatBlock = ({
: setDisplayedChunks([...displayedChunks, { bubbles: [nextStep] }]) : setDisplayedChunks([...displayedChunks, { bubbles: [nextStep] }])
} }
if (isInputStep(nextStep)) { if (isInputStep(nextStep)) {
return displayedChunks.length === 0 || displayedChunks.length === 0 ||
isDefined(displayedChunks[displayedChunks.length - 1].input) isDefined(displayedChunks[displayedChunks.length - 1].input)
? setDisplayedChunks([ ? setDisplayedChunks([
...displayedChunks, ...displayedChunks,
{ bubbles: [], input: nextStep }, { bubbles: [], input: nextStep },

View File

@@ -107,7 +107,7 @@ export const TypebotContext = ({
const popEdgeIdFromLinkedTypebotQueue = () => { const popEdgeIdFromLinkedTypebotQueue = () => {
setLinkedBotQueue((queue) => queue.slice(1)) setLinkedBotQueue((queue) => queue.slice(1))
const typebot = setCurrentTypebotId(linkedBotQueue[0].typebotId) setCurrentTypebotId(linkedBotQueue[0].typebotId)
} }
return ( return (