Skip to content

Commit

Permalink
fix(editor): 💄 Variable button tiny dropdown
Browse files Browse the repository at this point in the history
  • Loading branch information
baptisteArno committed May 17, 2022
1 parent 55224c9 commit 0f38141
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion apps/builder/components/shared/buttons/VariablesButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ type Props = {

export const VariablesButton = ({ onSelectVariable, ...props }: Props) => {
return (
<Popover matchWidth isLazy>
<Popover isLazy placement="bottom-end">
<PopoverTrigger>
<Flex>
<Tooltip label="Insert a variable">
Expand Down
1 change: 0 additions & 1 deletion apps/builder/contexts/WorkspaceContext.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,6 @@ export const WorkspaceContext = ({ children }: { children: ReactNode }) => {
mutate({
workspaces: [...workspaces, newWorkspace],
})
console.log(newWorkspace)
setCurrentWorkspace(newWorkspace)
}

Expand Down
4 changes: 2 additions & 2 deletions packages/bot-engine/src/components/ChatBlock/ChatBlock.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,8 @@ export const ChatBlock = ({
: setDisplayedChunks([...displayedChunks, { bubbles: [nextStep] }])
}
if (isInputStep(nextStep)) {
return displayedChunks.length === 0 ||
isDefined(displayedChunks[displayedChunks.length - 1].input)
displayedChunks.length === 0 ||
isDefined(displayedChunks[displayedChunks.length - 1].input)
? setDisplayedChunks([
...displayedChunks,
{ bubbles: [], input: nextStep },
Expand Down
2 changes: 1 addition & 1 deletion packages/bot-engine/src/contexts/TypebotContext.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ export const TypebotContext = ({

const popEdgeIdFromLinkedTypebotQueue = () => {
setLinkedBotQueue((queue) => queue.slice(1))
const typebot = setCurrentTypebotId(linkedBotQueue[0].typebotId)
setCurrentTypebotId(linkedBotQueue[0].typebotId)
}

return (
Expand Down

0 comments on commit 0f38141

Please sign in to comment.