fix: set search params in page

This commit is contained in:
Christel Westerberg
2024-02-08 09:27:18 +01:00
parent e48a9535ef
commit dd8a88e47d
4 changed files with 33 additions and 38 deletions

View File

@@ -5,8 +5,10 @@ import { useEffect } from "react";
export default function InitLivePreview() {
useEffect(() => {
console.log("INIT");
ContentstackLivePreview.init();
if (!ContentstackLivePreview.livePreview) {
console.log("INIT");
ContentstackLivePreview.init();
}
}, []);
return null;