📦 Update cuid to cuid2

This commit is contained in:
Baptiste Arnaud
2023-02-10 15:06:02 +01:00
parent 2dbf0fb848
commit 51f76700b2
77 changed files with 254 additions and 250 deletions

View File

@@ -12,7 +12,7 @@ import { useTypebot } from '@/features/editor'
import { DraggableBlockType, PublicTypebot, Typebot } from 'models'
import { useDebounce } from 'use-debounce'
import GraphElements from './GraphElements'
import cuid from 'cuid'
import { createId } from '@paralleldrive/cuid2'
import { useUser } from '@/features/account'
import { ZoomButtons } from './ZoomButtons'
import { AnswersCount } from '@/features/analytics'
@@ -96,7 +96,7 @@ export const Graph = ({
{ x: e.clientX, y: e.clientY },
graphPosition
)
const id = cuid()
const id = createId()
updateGroupCoordinates(id, coordinates)
createGroup({
id,