Skip to content

Commit 6d76515

Browse files
Make SetIfDifferent no longer check if a key is mutable.
This would cause issues when updating an installation. By forcing removal of a key using an operation, we no longer check for children who override `IsMutableForKey`. Fixes #40, and probably several others.
1 parent 1db6c81 commit 6d76515

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Parse/ParseObject.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1134,7 +1134,7 @@ internal void SetIfDifferent<T>(string key, T value) {
11341134
bool hasCurrent = TryGetValue<T>(key, out current);
11351135
if (value == null) {
11361136
if (hasCurrent) {
1137-
Remove(key);
1137+
PerformOperation(key, ParseDeleteOperation.Instance);
11381138
}
11391139
return;
11401140
}

0 commit comments

Comments
 (0)