Skip to content

Commit

Permalink
chore(temp): do not redirect to /datapacks on vanilla servers
Browse files Browse the repository at this point in the history
Signed-off-by: Evan Song <[email protected]>
  • Loading branch information
ferothefox committed Oct 17, 2024
1 parent 2b785e6 commit 858a947
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions apps/frontend/src/pages/servers/manage/[id]/content/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,9 @@ interface Mod {
}
const prodOverride = await PyroAuthOverride();
const router = useRouter();
const route = useNativeRoute();
const serverId = route.params.id as string;
// const router = useRouter();
// const route = useNativeRoute();
// const serverId = route.params.id as string;
const modModal = ref();
const isEditMode = ref(false);
Expand All @@ -86,9 +86,9 @@ const versions = ref<Record<string, any[]>>({});
const data = computed(() => props.server.general);
const mods = computed(() => props.server.mods?.data);
if (data.value?.loader === "Vanilla") {
router.push(`/servers/manage/${serverId}/content/datapacks`);
}
// if (data.value?.loader === "Vanilla") {
// router.push(`/servers/manage/${serverId}/content/datapacks`);
// }
const hasMods = (mods: Mod[]) => {
if (mods.length > 0) {
Expand Down

0 comments on commit 858a947

Please sign in to comment.