perf: [CAL-1928] Deduplicate eventTypes.getByViewer query (#9700)
Co-authored-by: alannnc <[email protected]> Co-authored-by: Udit Takkar <[email protected]>
This commit is contained in:
2 files changed
+6
-1
No files matched your search
@@ -861,7 +861,7 @@ const EventTypesPage = () => {
|
||||
const filters = getTeamsFiltersFromQuery(router.query);
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||
const WithQuery = withQuery(trpc.viewer.eventTypes.getByViewer as any, { filters });
|
||||
const WithQuery = withQuery(trpc.viewer.eventTypes.getByViewer as any, filters && { filters });
|
||||
|
||||
return (
|
||||
<div>
|
||||
|
||||
Reference in new issue
Block a user