2
0

🐛 Fix new typebot creation host bubble parsing

This commit is contained in:
Baptiste Arnaud
2023-01-06 11:02:42 +01:00
parent 40d230a73a
commit 119f6dc348
2 changed files with 19 additions and 15 deletions

View File

@ -7,6 +7,20 @@ import {
Typebot,
} from 'models'
export type NewTypebotProps = Omit<
Typebot,
| 'createdAt'
| 'updatedAt'
| 'id'
| 'publishedTypebotId'
| 'publicId'
| 'customDomain'
| 'icon'
| 'isArchived'
| 'isClosed'
| 'resultsTablePreferences'
>
export const parseNewTypebot = ({
folderId,
name,
@ -19,19 +33,7 @@ export const parseNewTypebot = ({
name: string
ownerAvatarUrl?: string
isBrandingEnabled?: boolean
}): Omit<
Typebot,
| 'createdAt'
| 'updatedAt'
| 'id'
| 'publishedTypebotId'
| 'publicId'
| 'customDomain'
| 'icon'
| 'isArchived'
| 'isClosed'
| 'resultsTablePreferences'
> => {
}): NewTypebotProps => {
const startGroupId = cuid()
const startBlockId = cuid()
const startBlock: StartBlock = {