From 27f4f73148f7c4c6b523c124e787e9b2e1e4e2d9 Mon Sep 17 00:00:00 2001 From: Pascal Martineau Date: Wed, 28 Jan 2026 21:13:31 -0500 Subject: [PATCH] fix: update nuxt-graphql and extractNodes typing (maybe => undefined instead of null) --- wp-content/themes/moonshine/package.json | 2 +- wp-content/themes/moonshine/shared/utils/graphql.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-content/themes/moonshine/package.json b/wp-content/themes/moonshine/package.json index d993892..e704c9b 100644 --- a/wp-content/themes/moonshine/package.json +++ b/wp-content/themes/moonshine/package.json @@ -16,7 +16,7 @@ }, "dependencies": { "@iconify-json/lucide": "^1.2.87", - "@lewebsimple/nuxt-graphql": "^0.6.1", + "@lewebsimple/nuxt-graphql": "^0.6.6", "@nuxt/ui": "4.3.0", "@nuxtjs/device": "4.0.0", "@nuxtjs/seo": "^3.4.0", diff --git a/wp-content/themes/moonshine/shared/utils/graphql.ts b/wp-content/themes/moonshine/shared/utils/graphql.ts index 7e8d4d9..0a57080 100644 --- a/wp-content/themes/moonshine/shared/utils/graphql.ts +++ b/wp-content/themes/moonshine/shared/utils/graphql.ts @@ -1,4 +1,4 @@ // Helper: Extracts nodes from a GraphQL connection object, returning an empty array if nodes are absent. -export function extractNodes(connection: { nodes?: readonly T[] } | null | undefined): readonly T[] { +export function extractNodes(connection: { nodes?: T[] } | undefined): T[] { return connection?.nodes ?? []; }