fix: avoid Convex skip sentinel in queries
This commit is contained in:
parent
3880ff57bd
commit
3de7eccaa8
32 changed files with 131 additions and 125 deletions
|
|
@ -77,7 +77,7 @@ export function RecentTicketsPanel() {
|
|||
const ticketsArgs = convexUserId
|
||||
? { tenantId: DEFAULT_TENANT_ID, viewerId: convexUserId as Id<"users">, limit: 12 }
|
||||
: undefined
|
||||
const ticketsResult = useQuery(convexUserId ? api.tickets.list : "skip", ticketsArgs)
|
||||
const ticketsResult = useQuery(convexUserId ? api.tickets.list : undefined, ticketsArgs)
|
||||
const [enteringId, setEnteringId] = useState<string | null>(null)
|
||||
const previousIdsRef = useRef<string[]>([])
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue