diff --git a/apps/OpenSign/src/primitives/GetReportDisplay.js b/apps/OpenSign/src/primitives/GetReportDisplay.js index c56828e94..ee45ae977 100644 --- a/apps/OpenSign/src/primitives/GetReportDisplay.js +++ b/apps/OpenSign/src/primitives/GetReportDisplay.js @@ -1226,13 +1226,15 @@ const ReportTable = (props) => { )}
0 - ? "min-h-[317px]" - : currentList?.length === props.docPerPage - ? "h-fit" - : "h-screen" - } overflow-auto w-full border-b`} + className={`overflow-auto w-full border-b ${ + props.List?.length > 0 + ? isDashboard + ? "min-h-[317px]" + : currentList?.length === props.docPerPage + ? "h-fit" + : "h-screen" + : "" + }`} > @@ -2140,6 +2142,24 @@ const ReportTable = (props) => { )}
+ {props.List?.length <= 0 && ( +
+
+ img +
+
+ {t("no-data-avaliable")} +
+
+ )}
{props.List.length > props.docPerPage && ( @@ -2171,24 +2191,6 @@ const ReportTable = (props) => { )}
- {props.List?.length <= 0 && ( -
-
- img -
-
- {t("no-data-avaliable")} -
-
- )}