Skip to content

Commit

Permalink
[DOP-22410] Fix calculating DatasetNode height
Browse files Browse the repository at this point in the history
  • Loading branch information
dolfinus committed Mar 4, 2025
1 parent 1e94807 commit cdd4e9a
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/components/lineage/converters/getGraphNodes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,10 +94,8 @@ const getDataseNode = (
);

let maxHeight = BASE_NODE_HEIGHT;
if (hasColumnLineage) {
maxHeight =
BASE_NODE_HEIGHT *
Math.max(outputSchemas.length, inputSchemas.length, 10);
if (schema && hasColumnLineage) {
maxHeight += BASE_NODE_HEIGHT * Math.min(schema.fields.length, 10);
}

return {
Expand Down

0 comments on commit cdd4e9a

Please sign in to comment.