Skip to content

Commit

Permalink
chore(analytics): ♿️ Disable edge delete
Browse files Browse the repository at this point in the history
  • Loading branch information
baptisteArno committed Mar 3, 2022
1 parent 4714e80 commit 31f86d8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions apps/builder/components/shared/Graph/Edges/Edge.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ export const Edge = ({ edge }: { edge: EdgeProps }) => {
targetEndpoints,
blocksCoordinates,
graphPosition,
isReadOnly,
} = useGraph()
const [isMouseOver, setIsMouseOver] = useState(false)
const { isOpen, onOpen, onClose } = useDisclosure()
Expand Down Expand Up @@ -87,6 +88,7 @@ export const Edge = ({ edge }: { edge: EdgeProps }) => {
const handleMouseLeave = () => setIsMouseOver(false)

const handleEdgeClick = (e: React.MouseEvent) => {
if (isReadOnly) return
setEdgeMenuPosition({ x: e.clientX, y: e.clientY })
onOpen()
}
Expand Down

2 comments on commit 31f86d8

@vercel
Copy link

@vercel vercel bot commented on 31f86d8 Mar 3, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

builder-v2 – ./apps/builder

app.typebot.io
builder-v2-git-main-typebot-io.vercel.app
builder-v2-typebot-io.vercel.app

@vercel
Copy link

@vercel vercel bot commented on 31f86d8 Mar 3, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.