fix(canvas): remove TS cast from inline script (Vite builds as JS)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Jeff Emmett 2026-03-23 19:25:18 -07:00
parent 8b43df5ce9
commit 79f16925aa
1 changed files with 1 additions and 1 deletions

View File

@ -3067,7 +3067,7 @@
// Wire history revert // Wire history revert
document.querySelector("rstack-history-panel")?.addEventListener("revert-requested", (e) => { 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); if (hash) sync.revertToHash(hash);
}); });