chore: [app dir bootstrapping 4] check nullability of navigation hook return values (#12005)

This commit is contained in:
Greg Pabian authored and GitHub committed 2023-10-20 16:47:05 -07:00
1 parent eac45c5e23
commit 39cfe18ffe
28 files changed
+114 -86

No files matched your search

+1 -1
View File
@@ -268,7 +268,7 @@ interface EditModalState extends Pick<App, "keys"> {
const AdminAppsListContainer = () => {
const searchParams = useSearchParams();
const { t } = useLocale();
const category = searchParams.get("category") || AppCategories.calendar;
const category = searchParams?.get("category") || AppCategories.calendar;
const { data: apps, isLoading } = trpc.viewer.appsRouter.listLocal.useQuery(
{ category },