Summary
The dashboard zaps page can keep previously loaded received rows visible after switching to Sent while the sent-history request is pending or fails.
Reproduction
- Open /dashboard/zaps with received zaps loaded.
- Switch from Received to Sent.
- Slow or fail /api/zaps/history?direction=sent....
Expected
The old received rows are cleared immediately and stale in-flight responses cannot repopulate the opposite tab.
Actual
Old rows can stay rendered under the new direction, causing received zaps to appear as sent zaps until a later successful response replaces them.
Summary
The dashboard zaps page can keep previously loaded received rows visible after switching to Sent while the sent-history request is pending or fails.
Reproduction
Expected
The old received rows are cleared immediately and stale in-flight responses cannot repopulate the opposite tab.
Actual
Old rows can stay rendered under the new direction, causing received zaps to appear as sent zaps until a later successful response replaces them.