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 1f1db6436..b506e6b38 100644 --- a/app/graphql/connections/dossiers_connection.rb +++ b/app/graphql/connections/dossiers_connection.rb @@ -5,7 +5,7 @@ module Connections @lookahead = lookahead end - def nodes + def load_nodes if @nodes.nil? && preload? DossierPreloader.new(super).all else