Skip to content

Commit

Permalink
encodeURIComponent namespace and name in GET lineage request
Browse files Browse the repository at this point in the history
  • Loading branch information
MaartenHubrechts authored Nov 21, 2024
1 parent 41d9d3d commit 19a4298
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions web/src/store/requests/lineage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@ export const getLineage = async (
name: string,
depth: number
) => {
const nodeId = generateNodeId(nodeType, namespace, name)
// Node ID cannot be URL encoded
const nodeId = generateNodeId(nodeType, encodeURIComponent(namespace), encodeURIComponent(name))
const url = `${API_URL}/lineage?nodeId=${nodeId}&depth=${depth}`
return genericFetchWrapper(url, { method: 'GET' }, 'fetchLineage')
}

0 comments on commit 19a4298

Please sign in to comment.