From 3dc9abef451daad1914a496d156592cf8bcc88f5 Mon Sep 17 00:00:00 2001 From: Chirag Madlani <12962843+chirag-madlani@users.noreply.github.com> Date: Thu, 10 Oct 2024 18:09:49 +0530 Subject: [PATCH] fix(ui): compare version only if version is set (#18210) --- .../src/main/resources/ui/src/components/NavBar/NavBar.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/openmetadata-ui/src/main/resources/ui/src/components/NavBar/NavBar.tsx b/openmetadata-ui/src/main/resources/ui/src/components/NavBar/NavBar.tsx index 81644d1c8c9..30f7650c262 100644 --- a/openmetadata-ui/src/main/resources/ui/src/components/NavBar/NavBar.tsx +++ b/openmetadata-ui/src/main/resources/ui/src/components/NavBar/NavBar.tsx @@ -311,7 +311,8 @@ const NavBar = ({ return; } const newVersion = await getVersion(); - if (version !== newVersion.version) { + // Compare version only if version is set previously to have fair comparison + if (version && version !== newVersion.version) { setShowVersionMissMatchAlert(true); } };