From b2a88583fed10b7f994bfbdefef89e5855549650 Mon Sep 17 00:00:00 2001 From: Alim TUNC Date: Mon, 7 Aug 2023 11:34:09 +0200 Subject: [PATCH] fix: anchorEl warning --- .../frontend/src/components/organisms/chat/history/button.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/chainlit/frontend/src/components/organisms/chat/history/button.tsx b/src/chainlit/frontend/src/components/organisms/chat/history/button.tsx index 338ad1f21e..bf83c61000 100644 --- a/src/chainlit/frontend/src/components/organisms/chat/history/button.tsx +++ b/src/chainlit/frontend/src/components/organisms/chat/history/button.tsx @@ -200,7 +200,7 @@ export default function HistoryButton({ }); } - const menu = ( + const menu = anchorEl ? ( {menuEls} - ); + ) : null; return (