2
0

feat: ️ Remove branding automatically

This commit is contained in:
Baptiste Arnaud
2022-06-20 11:28:18 +02:00
parent f676166a17
commit 3e7b34c721
2 changed files with 17 additions and 3 deletions

View File

@@ -400,11 +400,13 @@ export const parseNewTypebot = ({
name,
ownerAvatarUrl,
workspaceId,
isBrandingEnabled = true,
}: {
folderId: string | null
workspaceId: string
name: string
ownerAvatarUrl?: string
isBrandingEnabled?: boolean
}): Omit<
Typebot,
| 'createdAt'
@@ -443,7 +445,13 @@ export const parseNewTypebot = ({
hostAvatar: { isEnabled: true, url: ownerAvatarUrl },
},
},
settings: defaultSettings,
settings: {
...defaultSettings,
general: {
...defaultSettings.general,
isBrandingEnabled,
},
},
}
}