2
0

🐛 (editor) Fix old typebot flash when changing the typebot

This commit is contained in:
Baptiste Arnaud
2023-12-05 08:15:34 +01:00
parent c02e4e141b
commit cb87a72cca

View File

@ -159,9 +159,9 @@ export const TypebotProvider = ({
const typebot = typebotData?.typebot as TypebotV6
const publishedTypebot = (publishedTypebotData?.publishedTypebot ??
undefined) as PublicTypebotV6 | undefined
const isReadOnly = ['read', 'guest'].includes(
typebotData?.currentUserMode ?? 'guest'
)
const isReadOnly =
typebotData &&
['read', 'guest'].includes(typebotData?.currentUserMode ?? 'guest')
const [
localTypebot,