diff --git a/website/canvas.html b/website/canvas.html index da0c701..322e34b 100644 --- a/website/canvas.html +++ b/website/canvas.html @@ -3067,7 +3067,7 @@ // Wire history revert document.querySelector("rstack-history-panel")?.addEventListener("revert-requested", (e) => { - const { hash } = (e as CustomEvent).detail; + const hash = e.detail?.hash; if (hash) sync.revertToHash(hash); });