Skip to content

Commit

Permalink
Fix bug with task list (#759)
Browse files Browse the repository at this point in the history
Encode URI components when making a call to describeTasklist, to fix an issue where tasklists with forward slashes do not load correctly.
  • Loading branch information
adhityamamallan authored Dec 13, 2024
1 parent ef967da commit 3245b9a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export default function TaskListLoader(props: Props) {
queryKey: ['describeTaskList', props],
queryFn: () =>
request(
`/api/domains/${props.domain}/${props.cluster}/task-list/${props.taskListName}`
`/api/domains/${encodeURIComponent(props.domain)}/${encodeURIComponent(props.cluster)}/task-list/${encodeURIComponent(props.taskListName)}`
).then((res) => res.json()),
refetchInterval: TASK_LIST_REFETCH_INTERVAL_MS,
});
Expand Down

0 comments on commit 3245b9a

Please sign in to comment.