From a3b90d86116a91342c834ffb37b90e73774a557a Mon Sep 17 00:00:00 2001 From: anRecky <45596261+Anrecky@users.noreply.github.com> Date: Sat, 20 Jul 2024 22:36:38 +0700 Subject: [PATCH] Fix: Ensure all code paths return a DrupalJsonApiParams instance in getParams function - Updated `getParams` function to ensure every code path returns a `DrupalJsonApiParams` instance. - Added default return value to handle unknown `name` cases. --- examples/example-umami/lib/get-params.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/examples/example-umami/lib/get-params.ts b/examples/example-umami/lib/get-params.ts index b316201c..1cd83b2d 100644 --- a/examples/example-umami/lib/get-params.ts +++ b/examples/example-umami/lib/get-params.ts @@ -135,4 +135,5 @@ export function getParams( if (name === "taxonomy_term--recipe_category") { return params.addFields("taxonomy_term--recipe_category", ["name", "path"]) } + return params; }