fix: use only slug (#7504)

* fix: use only slug

Signed-off-by: Udit Takkar <[email protected]>

* chore

Signed-off-by: Udit Takkar <[email protected]>

* fix: create slug key

Signed-off-by: Udit Takkar <[email protected]>

---------

Signed-off-by: Udit Takkar <[email protected]>
This commit is contained in:
Udit Takkar authored and GitHub committed 2023-03-03 15:43:26 -07:00
1 parent 61a5c3a3b5
commit f3143d99ee
3 files changed
+12 -6

No files matched your search

@@ -18,6 +18,7 @@ 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 {
@@ -43,7 +44,7 @@ export function CreateButton(props: CreateBtnProps) {
const query = {
...router.query,
dialog: "new",
eventPage: option.label,
eventPage: option.slug,
teamId: option.teamId,
};
if (!option.teamId) {