Refactor condition in readProjectDialogueLibrary to handle undefined values correctly

This commit is contained in:
2026-04-14 20:03:01 +02:00
parent 2ac3bae109
commit 7d03ecd7bc

View File

@@ -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();
}