json-api-dotnet / JsonApiDotNetCore

A framework for building JSON:API compliant REST APIs using ASP.NET and Entity Framework Core.
https://www.jsonapi.net
MIT License
680 stars 159 forks source link

Error when using EagerLoad on a relationship #1106

Closed bart-degreed closed 2 years ago

bart-degreed commented 2 years ago

This was supposed to be fixed in https://github.com/json-api-dotnet/JsonApiDotNetCore/pull/1000 and tested with https://github.com/json-api-dotnet/JsonApiDotNetCore/pull/990. But as it turns out, the fix wasn't merged correctly.

The unconditional line below the fix:

propertySelectors[propertySelector.Property] = propertySelector;

should be removed.

bart-degreed commented 2 years ago

Fixed in #1114.