ViewsEntityResults gives error when the view has no results

Created on 27 April 2023, about 1 year ago

Problem/Motivation

The views_entity_results data producer plugin gives the following error when the view has zero results:
Call to a member function getCacheContexts() on array in Drupal\graphql_compose_views\Plugin\GraphQL\DataProducer\ViewsEntityResults->resolve() (line 55 of modules/contrib/graphql_compose/modules/graphql_compose_views/src/Plugin/GraphQL/DataProducer/ViewsEntityResults.php)

Proposed resolution

The patch attached fixes the issue.

🐛 Bug report
Status

Fixed

Version

2.0

Component

Code

Created by

🇮🇳India Sagar Ramgade

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

Comments & Activities

Production build 0.69.0 2024