Fix "Vulnerability report errors out when users select `Show 100 items` and switch tabs"
All threads resolved!
Compare changes
Files
2- Paul Gascou-Vaillancourt authored
This adds a test to ensure the vulnerabilities query is only triggered once with the correct `first` parameter when the page size is set in the local storage. This covers a bug that was uncovered recently and that results in the query being triggered twice when the component mounts because it first tries to get the default page size, and immediately makes another attempt with the page size retrieved by the LocalStorageSync component. This test voluntarily fails in this revision, the next commit will fix the component to make this test pass.
@@ -13,7 +13,7 @@ import VulnerabilityList from './vulnerability_list.vue';