feat(sp28): Inbox ack orphans lane with Dismiss + Link to dropdown
This commit is contained in:
+4
-1
@@ -1138,7 +1138,10 @@ async function listAckOrphans(kind: ClaimAckKind): Promise<AckOrphanRow[]> {
|
||||
items: AckOrphanRow[];
|
||||
total: number;
|
||||
}>(`/api/inbox/ack-orphans${qs({ kind })}`);
|
||||
return body.items;
|
||||
// Defensive: the test harness can stub fetch with a different
|
||||
// response shape. Treat a missing `items` as an empty list so a
|
||||
// broken mock doesn't crash the whole inbox.
|
||||
return Array.isArray(body.items) ? body.items : [];
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user