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
|
|
@ -135,8 +135,8 @@ export function CloseTicketDialog({
|
|||
const closingTemplateArgs =
|
||||
actorId && open ? { tenantId, viewerId: actorId, kind: "closing" as const } : undefined
|
||||
const closingTemplatesRemote = useQuery(
|
||||
actorId && open ? api.commentTemplates.list : undefined,
|
||||
closingTemplateArgs
|
||||
api.commentTemplates.list,
|
||||
closingTemplateArgs ?? "skip"
|
||||
)
|
||||
const closingTemplates = Array.isArray(closingTemplatesRemote)
|
||||
? (closingTemplatesRemote as { id: string; title: string; body: string }[])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue