|
|
@@ -58,7 +58,7 @@ export type EditorManager = {
|
|
|
openDoc: (document: Doc, options?: OpenDocOptions) => void
|
|
|
openDocs: OpenDocuments
|
|
|
openFileWithId: (fileId: string) => void
|
|
|
- openInitialDoc: (docId: string) => void
|
|
|
+ openInitialDoc: (docId?: string) => void
|
|
|
isLoading: boolean
|
|
|
jumpToLine: (options: GotoLineOptions) => void
|
|
|
debugTimers: React.MutableRefObject<Record<string, number>>
|
|
|
@@ -513,7 +513,7 @@ export const EditorManagerProvider: FC<React.PropsWithChildren> = ({
|
|
|
)
|
|
|
|
|
|
const openInitialDoc = useCallback(
|
|
|
- (fallbackDocId: string) => {
|
|
|
+ (fallbackDocId?: string) => {
|
|
|
const docId =
|
|
|
customLocalStorage.getItem(currentDocumentIdStorageKey) || fallbackDocId
|
|
|
if (docId) {
|