Fixed #427, #428 Sample Data breaks -UI and elastic-search unsecure mode breaks (#448)

This commit is contained in:
Sachin Chaurasiya 2021-09-09 13:50:30 +05:30 committed by GitHub
parent 9b7dfda43b
commit fe15afdb99
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 4 deletions

View File

@ -70,7 +70,9 @@ const ErrorPlaceHolderES = ({ type, errorMessage }: Props) => {
<div className="tw-flex tw-flex-col tw-items-center tw-mt-10 tw-text-base tw-font-normal">
<p className="tw-text-lg tw-font-bold tw-mb-1 tw-text-primary">
{`Hi, ${
AppState.userDetails.displayName || AppState.users[0].displayName
AppState.userDetails.displayName || AppState.users?.length > 0
? AppState.users[0].displayName
: 'User'
}!`}
</p>
{type === 'noData' && noRecordForES()}

View File

@ -61,13 +61,13 @@ const SampleDataTable: FunctionComponent<Props> = ({ sampleData }: Props) => {
)}
data-testid="row"
key={rowIndex}>
{row.map((data) => {
{row.map((data, index) => {
return (
<td
className="tableBody-cell"
data-testid="cell"
key={data}>
{data}
key={index}>
{data ? data.toString() : '--'}
</td>
);
})}