2
0

fix(viewer): 🐛 Attempt to fix loading issue in iframe safari

This commit is contained in:
Baptiste Arnaud
2022-03-04 16:09:41 +01:00
parent d13ca0fa9a
commit 93639c1fc6

View File

@ -27,9 +27,11 @@ export const TypebotPage = ({
const [resultId, setResultId] = useState<string | undefined>()
// Workaround for react-frame-component bug (https://github.com/ryanseddon/react-frame-component/pull/207)
// eslint-disable-next-line react-hooks/exhaustive-deps
useEffect(() => {
if (showTypebot) return
setShowTypebot(true)
}, [])
})
const initializeResult = async (variables: VariableWithValue[]) => {
const resultIdFromSession = getExistingResultFromSession()