Skip to content
This repository was archived by the owner on Dec 2, 2021. It is now read-only.

Commit

Permalink
Fix missing ActionBar breadcrumbs (#42)
Browse files Browse the repository at this point in the history
  • Loading branch information
kwasi authored Feb 12, 2020
1 parent 29b7f91 commit 2a39c3f
Show file tree
Hide file tree
Showing 6 changed files with 30 additions and 51 deletions.
4 changes: 1 addition & 3 deletions build/lib/mlmd/LineageActionBar.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion build/lib/mlmd/LineageActionBar.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

24 changes: 7 additions & 17 deletions build/lib/mlmd/Utils.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion build/lib/mlmd/Utils.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions src/mlmd/LineageActionBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,10 @@ import ReplayIcon from '@material-ui/icons/Replay';
import {classes, stylesheet} from "typestyle";
import {color, commonCss, fonts, padding} from "./Css";
import {CSSProperties} from "typestyle/lib/types";
import {getResourceProperty, getResourcePropertyViaFallBack} from "./Utils";
import {
getArtifactName,
getResourcePropertyViaFallBack,
} from './Utils';
import {Artifact} from '..';
import {ArtifactProperties, ArtifactCustomProperties} from "./Api";

Expand Down Expand Up @@ -134,10 +137,7 @@ export class LineageActionBar extends React.Component<LineageActionBarProps, Lin
disabled={isActive}
onClick={onBreadcrumbClicked}
>
{
// TODO: Resolve how to handle Artifacts logged with no name
getResourceProperty(artifact, ArtifactProperties.NAME) || '(unnamed)'
}
{getArtifactName(artifact)}
</button>
);
if (!isActive) {
Expand Down
Loading

0 comments on commit 2a39c3f

Please sign in to comment.