fix: Show messaging app in locations list (#10741)
* Get messaging app as well through query because a messaging app is also a location app * Fix type error --------- Co-authored-by: Joe Au-Yeung <[email protected]>
This commit is contained in:
1 parent
1b3f676e57
commit
0f9c3571fe
4 files changed
+34
-17
No files matched your search
@@ -1,4 +1,5 @@
|
||||
import { useAutoAnimate } from "@formkit/auto-animate/react";
|
||||
import type { AppCategories } from "@prisma/client";
|
||||
import { usePathname, useRouter, useSearchParams } from "next/navigation";
|
||||
import type { UIEvent } from "react";
|
||||
import { useEffect, useRef, useState } from "react";
|
||||
@@ -156,7 +157,7 @@ export function AllApps({ apps, searchText, categories, userAdminTeams }: AllApp
|
||||
.filter((app) =>
|
||||
selectedCategory !== null
|
||||
? app.categories
|
||||
? app.categories.includes(selectedCategory)
|
||||
? app.categories.includes(selectedCategory as AppCategories)
|
||||
: app.category === selectedCategory
|
||||
: true
|
||||
)
|
||||
|
||||
Reference in new issue
Block a user