From 6085bbf820aa92c2b9a67641a3dc93bb5c715b82 Mon Sep 17 00:00:00 2001 From: Yunwen Zheng Date: Wed, 20 Aug 2025 13:01:45 -0400 Subject: [PATCH] DashboardPreviewBanner: isNewPr prop adjustment (#109885) Bug fix where when saving changes to dashboard, DashboardPreviewBanner is rendering backward banner between loaded from new resource vs new resource created on remote. --- .../saving/provisioned/DashboardPreviewBanner.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/app/features/dashboard-scene/saving/provisioned/DashboardPreviewBanner.tsx b/public/app/features/dashboard-scene/saving/provisioned/DashboardPreviewBanner.tsx index 2c23481b5eb..e3b16d1e2bb 100644 --- a/public/app/features/dashboard-scene/saving/provisioned/DashboardPreviewBanner.tsx +++ b/public/app/features/dashboard-scene/saving/provisioned/DashboardPreviewBanner.tsx @@ -45,13 +45,13 @@ function DashboardPreviewBannerContent({ queryParams, slug, path }: DashboardPre // This page was loaded with a `pull_request_url` in the URL if (prURL?.length) { - return ; + return ; } // Check if this is a repo link const repoUrl = file.data?.urls?.newPullRequestURL ?? file.data?.urls?.compareURL; if (repoUrl) { - return ; + return ; } return (