fix: add type cast for currentDoc to fix TypeScript error

Cast handle.doc() to any to fix TypeScript error about missing 'store' property.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Jeff Emmett 2025-11-16 05:04:54 -07:00
parent 44df13119d
commit cb6d2ba980
1 changed files with 1 additions and 1 deletions

View File

@ -137,7 +137,7 @@ export function useAutomergeSync(config: AutomergeSyncConfig): TLStoreWithStatus
await handle.whenReady()
// Initialize document with default store if it's new/empty
const currentDoc = handle.doc()
const currentDoc = handle.doc() as any
if (!currentDoc || !currentDoc.store || Object.keys(currentDoc.store).length === 0) {
console.log("📝 Document is new/empty - initializing with default store")