From fbf2cfae50dca34bfffdf7aa563a4f76282911e4 Mon Sep 17 00:00:00 2001 From: Paul Chavard Date: Thu, 26 Oct 2023 11:42:56 +0200 Subject: [PATCH] fix(graphql): fix preloader with pagination --- app/graphql/connections/dossiers_connection.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/graphql/connections/dossiers_connection.rb b/app/graphql/connections/dossiers_connection.rb index 1f1db6436d1..b506e6b388a 100644 --- a/app/graphql/connections/dossiers_connection.rb +++ b/app/graphql/connections/dossiers_connection.rb @@ -5,7 +5,7 @@ def initialize(items, lookahead: nil, **kwargs) @lookahead = lookahead end - def nodes + def load_nodes if @nodes.nil? && preload? DossierPreloader.new(super).all else