fix: update nuxt-graphql and extractNodes typing (maybe => undefined instead of null)

This commit is contained in:
2026-01-28 21:13:31 -05:00
parent 21a7036ef5
commit 27f4f73148
2 changed files with 2 additions and 2 deletions

View File

@@ -1,4 +1,4 @@
// Helper: Extracts nodes from a GraphQL connection object, returning an empty array if nodes are absent.
export function extractNodes<T>(connection: { nodes?: readonly T[] } | null | undefined): readonly T[] {
export function extractNodes<T>(connection: { nodes?: T[] } | undefined): T[] {
return connection?.nodes ?? [];
}