dotnetZero 6.8.0, aspnet Framework 4.6, dotnet core 2.2, angular
This is a question from a very old version. I select three organization units, one parent and two children and the client sends an array of four integers where the parent is repeated for each child. The same goes when I select three children, I have three parent integers, all the same.
My question is, is this normal behaviour?
I have updated my
organization-unit-tree.component.ts to the latest version (not taking the last update to lodash-es). to bring in some bug fixes, nothing major.
I still get the same result.
My decision was to change two instances of the following line in my
//Organization Units await UserManager.SetOrganizationUnitsAsync(user, input.OrganizationUnits.ToArray());
//Organization Units await UserManager.SetOrganizationUnitsAsync(user, input.OrganizationUnit.Distinct().ToArray());
This has fixed the problem but I'm wondering if the problem is also there in the latest version?