Remove conditional rendering for ErrorEmptyState.

Signed-off-by: Linnéa Ivansson <linnea.ivansson01@gmail.com>
This commit is contained in:
Linnéa Ivansson
2022-11-21 14:42:01 +01:00
parent 3109d38fe3
commit b1ee867101
@@ -123,18 +123,14 @@ export const ErrorReporting = ({ detectedErrors }: ErrorReportingProps) => {
return (
<>
{errors.length === 0 ? (
<InfoCard title="Error Reporting">
<ErrorEmptyState />
</InfoCard>
) : (
{errors.length !== 0 &&
<Table
title="Error Reporting"
data={errors}
columns={columns}
options={{ paging: true, search: false }}
/>
)}
}
</>
);
};