Commit 3373fa8
Clear pendingAction on hold/unhold report actions in successData
The hold/unhold report actions were created with pendingAction: ADD
but successData only cleared pendingAction on the transaction, not
on the report actions. This caused them to permanently retain
pendingAction: 'add' in Onyx, which made OfflineWithFeedback grey
them out whenever the user went offline — even after the server had
already confirmed the action.
Add successData entries in both putOnHold and unholdRequest to clear
pendingAction on the hold-related report actions, following the
existing pattern used for optimisticCreatedAction.
Co-authored-by: Fitsum Abebe <FitseTLT@users.noreply.github.com>1 parent 67a0cc0 commit 3373fa8
1 file changed
Lines changed: 16 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
139 | 139 | | |
140 | 140 | | |
141 | 141 | | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
142 | 150 | | |
143 | 151 | | |
144 | 152 | | |
| |||
409 | 417 | | |
410 | 418 | | |
411 | 419 | | |
412 | | - | |
| 420 | + | |
413 | 421 | | |
414 | 422 | | |
415 | 423 | | |
| |||
420 | 428 | | |
421 | 429 | | |
422 | 430 | | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
423 | 438 | | |
424 | 439 | | |
425 | 440 | | |
| |||
0 commit comments