diff --git a/src/sempy_labs/tom/_model.py b/src/sempy_labs/tom/_model.py index 4782fcf2..a2414ba9 100644 --- a/src/sempy_labs/tom/_model.py +++ b/src/sempy_labs/tom/_model.py @@ -4308,11 +4308,10 @@ def add_changed_property(self, object, property: str): import Microsoft.AnalysisServices.Tabular as TOM - cp = TOM.ChangedProperty() - cp.Property = property - # Only add the property if it does not already exist for that object if not any(c.Property == property for c in object.ChangedProperties): + cp = TOM.ChangedProperty() + cp.Property = property object.ChangedProperties.Add(cp) def remove_changed_property(self, object, property: str):