fix(editor): 💄 Variable button tiny dropdown
This commit is contained in:
@@ -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">
|
||||
|
||||
@@ -105,7 +105,6 @@ export const WorkspaceContext = ({ children }: { children: ReactNode }) => {
|
||||
mutate({
|
||||
workspaces: [...workspaces, newWorkspace],
|
||||
})
|
||||
console.log(newWorkspace)
|
||||
setCurrentWorkspace(newWorkspace)
|
||||
}
|
||||
|
||||
|
||||
@@ -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 },
|
||||
|
||||
@@ -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 (
|
||||
|
||||
Reference in New Issue
Block a user