fix(SW-663): Fixed leaking of live preview hash and removing preview pages
This commit is contained in:
@@ -5,9 +5,7 @@ import { useEffect } from "react"
|
||||
|
||||
export default function InitLivePreview() {
|
||||
useEffect(() => {
|
||||
if (!ContentstackLivePreview.livePreview) {
|
||||
ContentstackLivePreview.init()
|
||||
}
|
||||
ContentstackLivePreview.init()
|
||||
}, [])
|
||||
|
||||
return null
|
||||
|
||||
Reference in New Issue
Block a user