⚡️ Reset remembered state if the typebot is updated (#1675)
Wipe stored chat state if a typebot is updated. Resolves #1508 Resolves #1427 https://github.com/user-attachments/assets/7668d6a7-2916-4158-b715-1cccaeaf6ddf --------- Co-authored-by: Baptiste Arnaud <baptiste.arnaud95@gmail.com>
This commit is contained in:
@ -170,6 +170,7 @@ const startTypebotPick = {
|
||||
variables: true,
|
||||
settings: true,
|
||||
theme: true,
|
||||
updatedAt: true,
|
||||
} as const
|
||||
export const startTypebotSchema = z.preprocess(
|
||||
preprocessTypebot,
|
||||
@ -381,6 +382,7 @@ export const startChatResponseSchema = z
|
||||
id: z.string(),
|
||||
theme: themeSchema,
|
||||
settings: settingsSchema,
|
||||
publishedAt: z.coerce.date().optional(),
|
||||
}),
|
||||
})
|
||||
.merge(chatResponseBaseSchema)
|
||||
|
Reference in New Issue
Block a user