Skip to content
This repository has been archived by the owner on Jul 2, 2024. It is now read-only.

Commit

Permalink
Ensure taskId is preserved in taskQueue redirect
Browse files Browse the repository at this point in the history
  • Loading branch information
khelif96 committed Feb 28, 2024
1 parent d2a531e commit acb6635
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pages/taskQueue/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ const TaskQueue = () => {
const firstDistroInList = taskQueueDistros[0]?.id;
const defaultDistro = distro ?? firstDistroInList;
setSelectedDistro(taskQueueDistros.find((d) => d.id === defaultDistro));
navigate(getTaskQueueRoute(defaultDistro));
navigate(getTaskQueueRoute(defaultDistro, taskId));
},
onError: (err) => {
dispatchToast.error(`There was an error loading distros: ${err.message}`);
Expand All @@ -71,7 +71,7 @@ const TaskQueue = () => {

const onChangeDistroSelection = (val: TaskQueueDistro) => {
taskQueueAnalytics.sendEvent({ name: "Select Distro", distro: val.id });
navigate(getTaskQueueRoute(val.id));
navigate(getTaskQueueRoute(val.id, taskId));
setSelectedDistro(val);
};

Expand Down

0 comments on commit acb6635

Please sign in to comment.