瀏覽代碼

fix: the return True is at the wrong scope

trgiangdo 1 年之前
父節點
當前提交
f6db7b1fbd
共有 1 個文件被更改,包括 1 次插入3 次删除
  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):