diff --git a/ui/src/Components/NavBar/FilterInput/History.js b/ui/src/Components/NavBar/FilterInput/History.js
index 7977a2d30..7ffaef45f 100644
--- a/ui/src/Components/NavBar/FilterInput/History.js
+++ b/ui/src/Components/NavBar/FilterInput/History.js
@@ -246,28 +246,28 @@ const History = observer(
)}
-
- {this.collapse.value
- ? ({ placement, ref, style }) =>
- : ({ placement, ref, style }) => (
-
- )}
-
+ {this.collapse.value ? null : (
+
+ {({ placement, ref, style }) => (
+
+ )}
+
+ )}
);
}