Prechádzať zdrojové kódy

fix: misuse scenario variable

trgiangdo 1 rok pred
rodič
commit
b2a070d925
1 zmenil súbory, kde vykonal 2 pridanie a 2 odobranie
  1. 2 2
      taipy/gui_core/_adapters.py

+ 2 - 2
taipy/gui_core/_adapters.py

@@ -115,8 +115,8 @@ class _GuiCoreScenarioDagAdapter(_TaipyBase):
         data = super().get()
         if isinstance(data, Scenario):
             try:
-                if core_get(data.id):
-                    dag = data._get_dag()
+                if scenario := core_get(data.id):
+                    dag = scenario._get_dag()
                     nodes = dict()
                     for id, node in dag.nodes.items():
                         entityType = _GuiCoreScenarioDagAdapter.get_entity_type(node)