We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 73f2ddd commit bba5e3fCopy full SHA for bba5e3f
desktop/src/app/components/navbar/warnings/warnings-modal.component.ts
@@ -149,7 +149,7 @@ export class WarningsModalComponent {
149
public getMissingRelationTargetIds(section: WarningSection): string[] {
150
151
return this.selectedDocument.resource.relations[section.fieldName]?.filter(targetId => {
152
- return this.selectedDocument.warnings.missingRelationTargets.targetIds.includes(targetId);
+ return this.selectedDocument.warnings?.missingRelationTargets?.targetIds.includes(targetId);
153
}) ?? [];
154
}
155
0 commit comments