You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Running into this with the Document media types. Note that DrupalNode and DrupalParagraph are have number as the type for the drupal_internal__*id, but DrupalMedia and DrupalFile have those as string. We are seeing them come through as number in our system.
A second issue is that the types for DrupalFIleMeta (via resourceIdObjMeta) are specific to images, but document files returned via JSON:API have a different resourceIdObjMeta surfaced.
Package containing the bug
next-drupal (NPM package)
Describe the bug
Hey, in types.ts we have:
But when I fetch terms from the jsonapi,
drupal_internal__tid
is a number. Same if it's a node id or what have you.This just caused a tricky bug where I was trying to compare a string with a number which of course wasn't working.
I'm on 1.6.0.
The text was updated successfully, but these errors were encountered: