From f71fd9ce19703de9f7fdd46c5bf6326f40cdf588 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) (cherry picked from commit 3dc9abef451daad1914a496d156592cf8bcc88f5) --- .../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 253d52864d1..b430a917ac3 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 @@ -310,7 +310,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); } };