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:
parent
44df13119d
commit
cb6d2ba980
|
|
@ -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")
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue