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