JSON response contains only 'field-entity-reference-revisions' for paragraph reference

Created on 21 August 2024, 9 months ago
Updated 22 August 2024, 9 months ago

Problem/Motivation

When a page that contains paragraph reference is requested, the JSON output returned contains only 'field-entity-reference-revisions' as value for that paragraph reference, instead of the referenced field items.

Steps to reproduce

Install lupus_decoupled, lupus_ce_renderer and its dependent modules - Version: 1.0.0-beta6
Install custom_element Version: 8.x-2.5

Setup nuxtjs and connect to Drupal

Drupal:
Create paragraph1
Create paragraph2
Create paragraphmain and refer paragraph1 and paragraph2
Create content type 'landing_page'
Create field in landing_page and reference 'paragraphmain'
Create content
View output in nuxtjs setup

Print the json data

Nuxt setup: https://cheetah-nuxt.netlify.app/

Check console for the json output

element : "field-entity-reference-revisions"

Attached image for reference

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

💬 Support request
Status

Closed: works as designed

Version

1.0

Component

Code

Created by

🇮🇳India kssundar Bengaluru

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @kssundar
  • Assigned to kssundar
  • Status changed to Closed: works as designed 9 months ago
  • 🇮🇳India kssundar Bengaluru

    This was caused due to missing paragraph type 'view' permissions to anonymous user.

    Closing this.

Production build 0.71.5 2024