🐛 (editor) Fix old typebot flash when changing the typebot
This commit is contained in:
@@ -159,9 +159,9 @@ export const TypebotProvider = ({
|
|||||||
const typebot = typebotData?.typebot as TypebotV6
|
const typebot = typebotData?.typebot as TypebotV6
|
||||||
const publishedTypebot = (publishedTypebotData?.publishedTypebot ??
|
const publishedTypebot = (publishedTypebotData?.publishedTypebot ??
|
||||||
undefined) as PublicTypebotV6 | undefined
|
undefined) as PublicTypebotV6 | undefined
|
||||||
const isReadOnly = ['read', 'guest'].includes(
|
const isReadOnly =
|
||||||
typebotData?.currentUserMode ?? 'guest'
|
typebotData &&
|
||||||
)
|
['read', 'guest'].includes(typebotData?.currentUserMode ?? 'guest')
|
||||||
|
|
||||||
const [
|
const [
|
||||||
localTypebot,
|
localTypebot,
|
||||||
|
|||||||
Reference in New Issue
Block a user