fix(submissions): having one scope only make the back return not work
This commit is contained in:
@@ -528,6 +528,11 @@ onMounted(async () => {
|
||||
return;
|
||||
}
|
||||
scopeName.value = scope.name;
|
||||
// The picker auto-redirects back here when there's only one scope, so
|
||||
// going "back" to it would loop - head to the event home instead.
|
||||
if (scopesResponse.data?.length === 1) {
|
||||
pageHeaderStore.setBackRoute({ name: "home", params: { eventPath: props.eventPath } });
|
||||
}
|
||||
pageHeaderStore.setTitle(t("submissions.pageTitle", { game: gameName.value, scope: scopeName.value }));
|
||||
|
||||
// Add paste listener (only processes if hovering upload area)
|
||||
|
||||
Reference in New Issue
Block a user