Sfoglia il codice sorgente

fix: the return True is at the wrong scope

trgiangdo 1 anno fa
parent
commit
f6db7b1fbd
1 ha cambiato i file con 1 aggiunte e 3 eliminazioni
  1. 1 3
      taipy/core/data/data_node.py

+ 1 - 3
taipy/core/data/data_node.py

@@ -510,7 +510,6 @@ class DataNode(_Entity, _Labeled):
             or the selected data is invalid.<br/>
             True otherwise.
         """
-
         if self.is_valid:
             from ..scenario.scenario import Scenario
             from ..taipy import get_parents
@@ -524,10 +523,9 @@ class DataNode(_Entity, _Labeled):
                         and ancestor_node.last_edit_date > self.last_edit_date
                     ):
                         return False
-                return True
+            return True
         return False
 
-
     @staticmethod
     def _class_map():
         def all_subclasses(cls):