refactor: use Convex skip sentinel in query args
This commit is contained in:
parent
3de7eccaa8
commit
bd2f22d046
32 changed files with 167 additions and 157 deletions
|
|
@ -37,8 +37,8 @@ export function SlasManager() {
|
|||
const tenantId = session?.user.tenantId ?? DEFAULT_TENANT_ID
|
||||
|
||||
const slas = useQuery(
|
||||
convexUserId ? api.slas.list : undefined,
|
||||
convexUserId ? { tenantId, viewerId: convexUserId as Id<"users"> } : undefined
|
||||
api.slas.list,
|
||||
convexUserId ? { tenantId, viewerId: convexUserId as Id<"users"> } : "skip"
|
||||
) as SlaPolicy[] | undefined
|
||||
|
||||
const createSla = useMutation(api.slas.create)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue