From 5b046be3924fcbcc8bdeae1b073384b2ed3eef31 Mon Sep 17 00:00:00 2001 From: pogi7 Date: Wed, 15 May 2024 12:24:07 -0700 Subject: [PATCH] add error handler to check if layout.contextMenu is defined for Trees & Tables Signed-off-by: pogi7 --- view/src/components/Table/Table.tsx | 2 +- view/src/components/Tree/Tree.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/view/src/components/Table/Table.tsx b/view/src/components/Table/Table.tsx index 10ceeb2..d8d9622 100644 --- a/view/src/components/Table/Table.tsx +++ b/view/src/components/Table/Table.tsx @@ -619,7 +619,7 @@ function Table({ )} - {rightClick && ( + {rightClick && layout.contextMenu && ( )} - {rightClick && ( + {rightClick && layout.contextMenu && (