2
0

🚸 Remove new typebot default user avatar

This commit is contained in:
Baptiste Arnaud
2023-07-07 11:44:14 +02:00
parent d3b7ad6dbd
commit 31b70223c8
2 changed files with 1 additions and 9 deletions

View File

@ -23,7 +23,6 @@ export type NewTypebotProps = Omit<
export const parseNewTypebot = ({
folderId,
name,
ownerAvatarUrl,
workspaceId,
isBrandingEnabled = true,
}: {
@ -56,13 +55,7 @@ export const parseNewTypebot = ({
edges: [],
variables: [],
selectedThemeTemplateId: null,
theme: {
...defaultTheme,
chat: {
...defaultTheme.chat,
hostAvatar: { isEnabled: true, url: ownerAvatarUrl },
},
},
theme: defaultTheme,
settings: {
...defaultSettings,
general: {

View File

@ -34,7 +34,6 @@ const handler = async (req: NextApiRequest, res: NextApiResponse) => {
'groups' in formattedData
? formattedData
: parseNewTypebot({
ownerAvatarUrl: user.image ?? undefined,
isBrandingEnabled: workspace.plan === Plan.FREE,
...data,
}),