diff --git a/app/models/Document.ts b/app/models/Document.ts index deee70d25..c2b465ba7 100644 --- a/app/models/Document.ts +++ b/app/models/Document.ts @@ -82,7 +82,7 @@ export default class Document extends ParanoidModel { * The name of the original data source, if imported. */ get sourceName() { - if (!this.sourceMetadata) { + if (!this.sourceMetadata?.importType) { return undefined; }