diff --git a/src/pages/home/report/ContextMenu/PopoverReportActionContextMenu.tsx b/src/pages/home/report/ContextMenu/PopoverReportActionContextMenu.tsx index 48b1b669c7ee..2c81cb264d16 100644 --- a/src/pages/home/report/ContextMenu/PopoverReportActionContextMenu.tsx +++ b/src/pages/home/report/ContextMenu/PopoverReportActionContextMenu.tsx @@ -206,7 +206,6 @@ function PopoverReportActionContextMenu(_props: unknown, ref: ForwardedRef { - setInstanceID(Math.random().toString(36).substr(2, 5)); setDisabledActions(disabledOptions); typeRef.current = type; reportIDRef.current = reportID ?? '-1'; @@ -225,6 +224,7 @@ function PopoverReportActionContextMenu(_props: unknown, ref: ForwardedRef { + setInstanceID(Math.random().toString(36).substr(2, 5)); onPopoverShow.current(); // After we have called the action, reset it.