Skip to content

Commit 2675649

Browse files
committed
[DOP-22580] Fix lineage compatibility with old browsers
1 parent 40ff60a commit 2675649

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

src/components/lineage/converters/getGraphNodes.ts

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -111,10 +111,12 @@ const getJobNode = (
111111
);
112112
});
113113

114-
const runs = runsById
115-
.values()
116-
.toArray()
117-
.toSorted((a, b) => (a.created_at < b.created_at ? 1 : -1));
114+
// Map.values().toArray() availability is limited
115+
const runs: RunResponseV1[] = [];
116+
runsById.forEach((value) => {
117+
runs.push(value);
118+
});
119+
runs.sort((a, b) => (a.created_at < b.created_at ? 1 : -1));
118120

119121
return {
120122
...getDefaultNode(),

0 commit comments

Comments
 (0)