From f4fb5cd37f4ef03ac1171bb0448c6c65e3ba10f8 Mon Sep 17 00:00:00 2001
From: Juliana <juliana@le-filament.com>
Date: Tue, 27 Sep 2022 14:24:11 +0200
Subject: [PATCH] [UPD]Display consumer in first click on consumer tab

---
 services/operation_services.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/services/operation_services.py b/services/operation_services.py
index c95e8fe..dda3235 100644
--- a/services/operation_services.py
+++ b/services/operation_services.py
@@ -396,6 +396,8 @@ class OperationsService(Component):
             }
         )
 
+        if role.get("isConsumer") and not role.get("isPmo") and not prm_id:
+            consumer_id = consumer_name[0]['id']
         if operation.is_data_enedis:
             if scale:
                 graph_datas = operation.graph_view_type(
-- 
GitLab