Fixed an issue where comments on domain constraints were not visible when selecting a domain node. Fixes #7403

This commit is contained in:
Akshay Joshi
2022-05-24 14:50:33 +05:30
parent befd4b1fa8
commit efe613d13e
3 changed files with 9 additions and 2 deletions

View File

@@ -85,8 +85,9 @@ class SchemaDiffObjectCompare:
target = self.fetch_objects_to_compare(**target_params)
# If both the dict have no items then return None.
if not (source or target) or (
len(source) <= 0 and len(target) <= 0):
if not (source or target) or not \
(isinstance(source, dict) and isinstance(target, dict)) or \
(len(source) <= 0 and len(target) <= 0):
return None
return compare_dictionaries(view_object=self,