-
Notifications
You must be signed in to change notification settings - Fork 194
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
#1365 #1369 prevent crash on image and location columns #1411
#1365 #1369 prevent crash on image and location columns #1411
Conversation
…d image columns properly
…h_on_image_and_location_columns
return this; | ||
} | ||
|
||
internal override object ToJson() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
incomplete as I'm not sure when this is used
@@ -692,6 +693,10 @@ private static object GetJsonPropertyValue(JsonElement propertyValue, FieldType | |||
{ | |||
return null; | |||
} | |||
else if (propertyValue.ValueKind == JsonValueKind.Object) | |||
{ | |||
return propertyValue.ToObject<System.Dynamic.ExpandoObject>(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is a "just in case" for other field types that happen to be treated as objects
Codecov ReportAll modified and coverable lines are covered by tests ✅
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## dev #1411 +/- ##
==========================================
- Coverage 82.42% 81.60% -0.83%
==========================================
Files 416 624 +208
Lines 28590 43720 +15130
Branches 0 4579 +4579
==========================================
+ Hits 23565 35677 +12112
- Misses 5025 6697 +1672
- Partials 0 1346 +1346 ☔ View full report in Codecov by Sentry. |
unit test will only work with mocked data or if you explicitly create list on your site with correct columns