Altinn / altinn-access-management-frontend

Frontend for access management
MIT License
3 stars 1 forks source link

Bugfix/875 rar oppforsel i filter i api delegering #884

Closed Albertlarsen closed 5 months ago

Albertlarsen commented 5 months ago

Description

Related Issue(s)

Verification

Documentation

Albertlarsen commented 5 months ago

@allinox Sorry, I should have said something about it. The reason of the weird Kasse error was because there where duplicate keys in react. "Arbeids and velferdsetaten" and "Nav (Arbeids og velferdsetaten)" had the same key since they had the same org code. Duplicate keys in react causes unexpected errors and this was one of them (Seemed like everytime you searched for something "Arbeids and Velferdsetaten" was automatically added as a duplicate and also always displayed, maybe because it didn't actually exist but was just a duplicate). So duplicate keys caused more duplicate keys and so on so everytime you searched for something, more duplicate keys was added and more duplicate FilterOptions were added.

allinox commented 5 months ago

@Albertlarsen Aha! That makes sense! Thanks for the explanation and kudos for figuring it out! 🙌

sonarcloud[bot] commented 5 months ago

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
100.0% Coverage on New Code
0.0% Duplication on New Code

See analysis details on SonarCloud