From 8f996ca2f3ecd8c87d9c8efb49944b8c0aff3e86 Mon Sep 17 00:00:00 2001 From: Tom Moor Date: Fri, 8 Mar 2024 21:29:34 -0500 Subject: [PATCH] fix: Individual imported files do not display source correctly in 'Insights' --- app/models/Document.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }