From 4a6e94be3f1b4f9861ea14dc321768c84b7bc49c Mon Sep 17 00:00:00 2001 From: Tom Moor Date: Mon, 18 May 2026 20:08:12 -0400 Subject: [PATCH] fix: avoid "Imported from undefined" in document insights (#12378) Only render the "Imported from" line when a source name or filename is actually available, since sourceMetadata can exist without either. --- app/scenes/Document/components/Insights.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/scenes/Document/components/Insights.tsx b/app/scenes/Document/components/Insights.tsx index e454950983..62a78b888d 100644 --- a/app/scenes/Document/components/Insights.tsx +++ b/app/scenes/Document/components/Insights.tsx @@ -58,12 +58,13 @@ function Insights({ document }: Props) { {t(`Last updated`)}{" "}