Revert "fix: use only slug (#7504)" (#7506)

This reverts commit f3143d99ee.
This commit is contained in:
Omar López authored and GitHub committed 2023-03-03 15:44:14 -07:00
1 parent f3143d99ee
commit c8b01f6992
3 files changed
+6 -12

No files matched your search

@@ -18,7 +18,6 @@ export interface Option {
teamId: number | null | undefined; // if undefined, then it's a profile
label: string | null;
image?: string | null;
slug: string | null;
}
interface CreateBtnProps {
@@ -44,7 +43,7 @@ export function CreateButton(props: CreateBtnProps) {
const query = {
...router.query,
dialog: "new",
eventPage: option.slug,
eventPage: option.label,
teamId: option.teamId,
};
if (!option.teamId) {