fix: avoid Convex skip sentinel in queries

This commit is contained in:
Esdras Renan 2025-11-01 02:09:16 -03:00
parent 3880ff57bd
commit 3de7eccaa8
32 changed files with 131 additions and 125 deletions

View file

@ -135,7 +135,7 @@ export function CloseTicketDialog({
const closingTemplateArgs =
actorId && open ? { tenantId, viewerId: actorId, kind: "closing" as const } : undefined
const closingTemplatesRemote = useQuery(
actorId && open ? api.commentTemplates.list : "skip",
actorId && open ? api.commentTemplates.list : undefined,
closingTemplateArgs
)
const closingTemplates = Array.isArray(closingTemplatesRemote)