Commit 94d5728
authored
fix(ui): upsertPreferences did not return preferences when creating new preferences (#15321)
This fixes a bug where `upsertPreferences` returned undefined if the
preferences did not exist before. In the list view, this causes url
params to be ignored on the first page load, as the following happened:
1. take query params from url
2. store them in preferences using `upsertPreferences`
3. work with the result of `upsertPreferences`
4. original query params are lost, even though they should have been
returned from `upsertPreferences`
An e2e test for this is added in
#15320, which depends on this
PR.1 parent 0c235c3 commit 94d5728
1 file changed
+2
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
83 | 83 | | |
84 | 84 | | |
85 | 85 | | |
86 | | - | |
| 86 | + | |
87 | 87 | | |
88 | 88 | | |
89 | 89 | | |
| |||
97 | 97 | | |
98 | 98 | | |
99 | 99 | | |
| 100 | + | |
100 | 101 | | |
101 | 102 | | |
102 | 103 | | |
| |||
0 commit comments