Commit ed722d2
committed
Fix array corruption in profile enrichment setQueryData
The spread operator {...data} converts arrays into plain objects
({0: item, 1: item, ...}) which breaks .map() calls on query data
like pinnedFeedInfos. Use Array.isArray check to preserve arrays
when creating new references for React Query cache updates.1 parent b971c7e commit ed722d2
1 file changed
Lines changed: 6 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
121 | 121 | | |
122 | 122 | | |
123 | 123 | | |
124 | | - | |
| 124 | + | |
| 125 | + | |
125 | 126 | | |
126 | | - | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
127 | 131 | | |
128 | 132 | | |
129 | 133 | | |
| |||
0 commit comments