Switch order from user/slug (#8134)
parent
82ea4e9fb7
commit
8e3ed28ba9
|
@ -507,7 +507,7 @@ export const insightsRouter = router({
|
||||||
|
|
||||||
let eventSlug = "";
|
let eventSlug = "";
|
||||||
if (eventTypeSelected.userId) {
|
if (eventTypeSelected.userId) {
|
||||||
eventSlug = `${eventTypeSelected?.slug}/${eventTypeSelected?.users[0]?.username}`;
|
eventSlug = `${eventTypeSelected?.users[0]?.username}/${eventTypeSelected?.slug}`;
|
||||||
}
|
}
|
||||||
if (eventTypeSelected?.team && eventTypeSelected?.team?.slug) {
|
if (eventTypeSelected?.team && eventTypeSelected?.team?.slug) {
|
||||||
eventSlug = `${eventTypeSelected.team.slug}/${eventTypeSelected.slug}`;
|
eventSlug = `${eventTypeSelected.team.slug}/${eventTypeSelected.slug}`;
|
||||||
|
|
Loading…
Reference in New Issue