next-drupal
next-drupal copied to clipboard
Fix: Ensure all code paths return a DrupalJsonApiParams instance in getParams function
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
getParamsfunction to ensure every code path returns aDrupalJsonApiParamsinstance. - Added default return value to handle unknown
namecases.