From b9b0bc7f5240ef24958a93675f8c50fa064229fc Mon Sep 17 00:00:00 2001 From: Daniel Neukirch Hansen Date: Tue, 3 Sep 2024 23:34:56 +0200 Subject: [PATCH] fix: :children_crossing: Add user message when the algorithm does not have an Heuritic Add user message when the algorithm does not have an Heuritic --- frontend/src/components/heuristicsMenu/HeuristicsMenu.tsx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/frontend/src/components/heuristicsMenu/HeuristicsMenu.tsx b/frontend/src/components/heuristicsMenu/HeuristicsMenu.tsx index 3d91958..c13b3b7 100644 --- a/frontend/src/components/heuristicsMenu/HeuristicsMenu.tsx +++ b/frontend/src/components/heuristicsMenu/HeuristicsMenu.tsx @@ -14,7 +14,9 @@ const HeuristicsMenu: React.FC = ({ content }) => {
))} + {!content?.length && ( + No heuristic available for the selected algorithm + )}
)}