Skip to content

Commit

Permalink
🐛 (editor) Fix old typebot flash when changing the typebot
Browse files Browse the repository at this point in the history
  • Loading branch information
baptisteArno committed Dec 5, 2023
1 parent c02e4e1 commit cb87a72
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit cb87a72

Please sign in to comment.