mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-09-09 17:12:02 +00:00
This commit is contained in:
parent
9b7dfda43b
commit
fe15afdb99
@ -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">
|
<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">
|
<p className="tw-text-lg tw-font-bold tw-mb-1 tw-text-primary">
|
||||||
{`Hi, ${
|
{`Hi, ${
|
||||||
AppState.userDetails.displayName || AppState.users[0].displayName
|
AppState.userDetails.displayName || AppState.users?.length > 0
|
||||||
|
? AppState.users[0].displayName
|
||||||
|
: 'User'
|
||||||
}!`}
|
}!`}
|
||||||
</p>
|
</p>
|
||||||
{type === 'noData' && noRecordForES()}
|
{type === 'noData' && noRecordForES()}
|
||||||
|
@ -61,13 +61,13 @@ const SampleDataTable: FunctionComponent<Props> = ({ sampleData }: Props) => {
|
|||||||
)}
|
)}
|
||||||
data-testid="row"
|
data-testid="row"
|
||||||
key={rowIndex}>
|
key={rowIndex}>
|
||||||
{row.map((data) => {
|
{row.map((data, index) => {
|
||||||
return (
|
return (
|
||||||
<td
|
<td
|
||||||
className="tableBody-cell"
|
className="tableBody-cell"
|
||||||
data-testid="cell"
|
data-testid="cell"
|
||||||
key={data}>
|
key={index}>
|
||||||
{data}
|
{data ? data.toString() : '--'}
|
||||||
</td>
|
</td>
|
||||||
);
|
);
|
||||||
})}
|
})}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user