diff --git a/src/document/migrate-scene-document.ts b/src/document/migrate-scene-document.ts index 84698255..2d9a5289 100644 --- a/src/document/migrate-scene-document.ts +++ b/src/document/migrate-scene-document.ts @@ -3391,7 +3391,11 @@ function readProjectDialogueLibrary( label: string, options: { allowMissing: boolean } ): ProjectDialogueLibrary { - if (value === undefined && options.allowMissing) { + if (value === undefined) { + if (options.allowMissing) { + return createEmptyProjectDialogueLibrary(); + } + return createEmptyProjectDialogueLibrary(); }