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 = ({ export const parseNewTypebot = ({
folderId, folderId,
name, name,
ownerAvatarUrl,
workspaceId, workspaceId,
isBrandingEnabled = true, isBrandingEnabled = true,
}: { }: {
@@ -56,13 +55,7 @@ export const parseNewTypebot = ({
edges: [], edges: [],
variables: [], variables: [],
selectedThemeTemplateId: null, selectedThemeTemplateId: null,
theme: { theme: defaultTheme,
...defaultTheme,
chat: {
...defaultTheme.chat,
hostAvatar: { isEnabled: true, url: ownerAvatarUrl },
},
},
settings: { settings: {
...defaultSettings, ...defaultSettings,
general: { general: {

View File

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