mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-09-26 09:22:14 +00:00
parent
46eb7c9bec
commit
902ad0d299
@ -12,7 +12,7 @@
|
||||
*/
|
||||
|
||||
import classNames from 'classnames';
|
||||
import { startCase, uniqueId } from 'lodash';
|
||||
import { isUndefined, startCase, uniqueId } from 'lodash';
|
||||
import { observer } from 'mobx-react';
|
||||
import {
|
||||
EntityTags,
|
||||
@ -160,15 +160,19 @@ const MlModelDetail: FC<MlModelDetailProp> = ({
|
||||
showLabel: true,
|
||||
isLink: true,
|
||||
},
|
||||
{
|
||||
key: 'Dashboard',
|
||||
value: getDashboardDetailsPath(
|
||||
mlModelDetail.dashboard?.fullyQualifiedName as string
|
||||
),
|
||||
placeholderText: getEntityName(mlModelDetail.dashboard),
|
||||
showLabel: true,
|
||||
isLink: true,
|
||||
},
|
||||
...(!isUndefined(mlModelDetail.dashboard)
|
||||
? [
|
||||
{
|
||||
key: 'Dashboard',
|
||||
value: getDashboardDetailsPath(
|
||||
mlModelDetail.dashboard?.fullyQualifiedName as string
|
||||
),
|
||||
placeholderText: getEntityName(mlModelDetail.dashboard),
|
||||
showLabel: true,
|
||||
isLink: true,
|
||||
},
|
||||
]
|
||||
: []),
|
||||
];
|
||||
|
||||
const hasEditAccess = () => {
|
||||
|
Loading…
x
Reference in New Issue
Block a user