Commit d51cf6b
fix(issues): Align handleDelete query key with fetch params
The optimistic delete was using a different query key than the fetch
because handleDelete always passed statsPeriod/start/end, but after
the previous fix those are only included when explicitly set in the URL.
This caused the cache update to miss and the deleted attachment stayed
visible.
Also removes the stale statsPeriod: '14d' from the screenshot filter
test expectation.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent 35ae0ee commit d51cf6b
File tree
2 files changed
+8
-4
lines changed- static/app/views/issueDetails/groupEventAttachments
2 files changed
+8
-4
lines changedLines changed: 0 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
84 | 84 | | |
85 | 85 | | |
86 | 86 | | |
87 | | - | |
88 | 87 | | |
89 | 88 | | |
90 | 89 | | |
| |||
Lines changed: 8 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
77 | 80 | | |
78 | 81 | | |
79 | 82 | | |
| |||
83 | 86 | | |
84 | 87 | | |
85 | 88 | | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | 89 | | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
90 | 95 | | |
91 | 96 | | |
92 | 97 | | |
| |||
0 commit comments