Skip to content

Commit 50802b3

Browse files
authored
fix(vscode): fix lineage graphs (#4501)
1 parent fc8bc92 commit 50802b3

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

vscode/react/src/components/graph/ModelColumns.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -402,7 +402,7 @@ function ModelColumn({
402402
refetch: getColumnLineage,
403403
isFetching,
404404
isError,
405-
} = useApiColumnLineage(nodeId, column.name)
405+
} = useApiColumnLineage(nodeId, column.name, { models_only: true })
406406

407407
useEffect(() => {
408408
if (isNil(selectManually)) return

vscode/react/src/components/graph/ModelNode.tsx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,6 @@ export default function ModelNode({
5353
const modelsArray = Object.values(models)
5454
const decodedId = decodeURIComponent(id)
5555
const model = modelsArray.find((m: Model) => m.fqn === decodedId)
56-
if (!model) {
57-
throw new Error(`Model not found: ${id}`)
58-
}
5956
const modelColumns = model?.columns ?? []
6057

6158
Object.keys(lineage[decodedId]?.columns ?? {}).forEach((column: string) => {

0 commit comments

Comments
 (0)