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

Commit

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

0 comments on commit e157307

Please sign in to comment.