From 5a1c363e8a406ae5add1c308bec1dd4ea0a93351 Mon Sep 17 00:00:00 2001
From: Pierre-Antoine Rouby <pierre-antoine.rouby@inrae.fr>
Date: Wed, 13 Dec 2023 09:42:47 +0100
Subject: [PATCH] IC: Fix reach reference at loading in case of multiple reach.

---
 src/Model/InitialConditions/InitialConditions.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/Model/InitialConditions/InitialConditions.py b/src/Model/InitialConditions/InitialConditions.py
index a71f3133..2d88ea68 100644
--- a/src/Model/InitialConditions/InitialConditions.py
+++ b/src/Model/InitialConditions/InitialConditions.py
@@ -250,7 +250,7 @@ class InitialConditions(SQLSubModel):
         )
 
         if new._data is not None:
-            yield new
+            return new
 
     def _db_save(self, execute, data=None):
         ok = True
-- 
GitLab