The || operator fallback returned the response wrapper object (truthy but not an array) when r.data.data was null/undefined, causing .map() crashes. Use ?? null, ?? [], and Array.isArray() guards instead.
The || operator fallback returned the response wrapper object (truthy but not an array) when r.data.data was null/undefined, causing .map() crashes. Use ?? null, ?? [], and Array.isArray() guards instead.