From c821fa0f439af5c809238153d9310b3dfa207641 Mon Sep 17 00:00:00 2001 From: Oliver Date: Sun, 30 Aug 2026 15:53:16 +1000 Subject: [PATCH] Notification fix (#12744) * Fill out stock location based on part default * [UI] Bug fix for notifications - Closes https://github.com/inventree/InvenTree/issues/12706 --- src/frontend/src/components/nav/NotificationDrawer.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/frontend/src/components/nav/NotificationDrawer.tsx b/src/frontend/src/components/nav/NotificationDrawer.tsx index 0977264700..907023aa97 100644 --- a/src/frontend/src/components/nav/NotificationDrawer.tsx +++ b/src/frontend/src/components/nav/NotificationDrawer.tsx @@ -52,8 +52,8 @@ function NotificationEntry({ const model_type = notification.target?.model_type; const model_id = notification.target?.model_id; - // If a valid model type is provided, that overrides the specified link - if (model_type as ModelType) { + // If a valid model type is provided, and no explicit link, construct a link + if (!link && (model_type as ModelType)) { const model_info = ModelInformationDict[model_type as ModelType]; if (model_info?.url_detail && model_id) { link = getDetailUrl(model_type as ModelType, model_id);