Skip to content

Commit 61634f1

Browse files
committed
fix: reverted change of 2c6f751
1 parent 50167e0 commit 61634f1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/JsonApiDotNetCore/Serialization/JsonApiDeSerializer.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -151,11 +151,11 @@ private object SetEntityAttributes(
151151
{
152152
if (attributeValues.TryGetValue(attr.PublicAttributeName, out object newValue))
153153
{
154-
if (attr.IsImmutable)
155-
continue;
156154
var convertedValue = ConvertAttrValue(newValue, attr.PropertyInfo.PropertyType);
157155
attr.SetValue(entity, convertedValue);
158-
_jsonApiContext.AttributesToUpdate[attr] = convertedValue;
156+
157+
if (attr.IsImmutable == false)
158+
_jsonApiContext.AttributesToUpdate[attr] = convertedValue;
159159
}
160160
}
161161

0 commit comments

Comments
 (0)