Skip to content

Commit

Permalink
Remove numeric conversion of uuid from legacy id system
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewtavis committed Sep 2, 2024
1 parent eac3d47 commit 1925814
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions frontend/composables/useMenuEntriesState.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,9 @@ import { IconMap } from "~/types/icon-map";
const createMenuEntry = (label: string, basePath: string, iconURL: string) => {
const { locale } = useI18n();
const router = useRouter();
// here, afaik, this is returning NaN as the id of a given organization is alphanumeric -- not a number.
// added the raw id which can be used with the routeURL , while maintaining the number version
const idStr = router.currentRoute.value.params.id;
const id = Number(router.currentRoute.value.params.id);
const routeURL = `/${locale.value}/${basePath}/${idStr}/${label

const { id } = router.currentRoute.value.params;
const routeURL = `/${locale.value}/${basePath}/${id}/${label
.split(".")
.pop()!
.toLowerCase()}`;
Expand Down

0 comments on commit 1925814

Please sign in to comment.