Skip to content
Merged
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions packages/core/components/FileDetails/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -190,8 +190,7 @@ export default function FileDetails(props: Props) {
</Modal>
<div className={styles.titleRow}>
<h4>Metadata</h4>
{/* To do: un-hide the provenance source button while in graph mode, should redraw graph */}
{hasProvenanceSource && !props.onClose && (
{hasProvenanceSource && (
<DefaultButton
onClick={() =>
dispatch(
Expand All @@ -201,7 +200,7 @@ export default function FileDetails(props: Props) {
)
}
>
View provenance
View relationship diagram
</DefaultButton>
)}
</div>
Expand Down
2 changes: 2 additions & 0 deletions packages/core/state/interaction/logics.ts
Original file line number Diff line number Diff line change
Expand Up @@ -762,6 +762,8 @@ const setOriginForProvenance = createLogic({
graph.reset();
dispatch(refreshGraph());
} else {
// Clear old nodes
graph.reset();
dispatch(expandGraph(file));
}
done();
Expand Down
Loading