next-drupal icon indicating copy to clipboard operation
next-drupal copied to clipboard

Fix: Ensure all code paths return a DrupalJsonApiParams instance in getParams function

Open recky-a opened this issue 1 year ago • 1 comments

This pull request is for: (mark with an "x")

  • [x] examples/*
  • [ ] modules/next
  • [ ] packages/next-drupal
  • [ ] starters/basic-starter
  • [ ] starters/graphql-starter
  • [ ] starters/pages-starter
  • [ ] Other

Desription

  • Updated getParams function to ensure every code path returns a DrupalJsonApiParams instance.
  • Added default return value to handle unknown name cases.

recky-a avatar Jul 20 '24 15:07 recky-a