Skip to content

Commit

Permalink
fix: related geometry point with same column name fails to display
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicolas Moreau committed Oct 8, 2024
1 parent 6be3d95 commit bc600fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/serializers/resource.js
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ function ResourceSerializer(
record[fieldInfo.association][fieldInfo.name] = record[fieldInfo
.association][fieldInfo.name].coordinates;
}
if (fieldInfo.name && record[fieldInfo.name]) {
if (!fieldInfo.association && fieldInfo.name && record[fieldInfo.name]) {
record[fieldInfo.name] = record[fieldInfo.name].coordinates;
}
});
Expand Down

0 comments on commit bc600fb

Please sign in to comment.