瀏覽代碼

[web] gracefully handle old history resyncs without origin (#32822)

GitOrigin-RevId: 6e9d878234fea8bdb74534b1f23ee127e5c2daaf
Jakob Ackermann 4 月之前
父節點
當前提交
be2e875bc5
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      services/web/types/history/projectHistory.ts

+ 1 - 1
services/web/types/history/projectHistory.ts

@@ -30,7 +30,7 @@ export type SyncStartRecordSchema = {
 export type SyncStateSchema = {
   resyncProjectStructure: boolean
   resyncDocContents: string[]
-  origin: { kind: string }
+  origin?: { kind: string }
 }
 
 export type SyncStateHistoryEntry = {