Skip to content

Commit

Permalink
Fix test failure
Browse files Browse the repository at this point in the history
  • Loading branch information
mikecote committed Feb 18, 2020
1 parent 25e4589 commit bfce131
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ export function AlertInstances({
export const AlertInstancesWithApi = withBulkAlertOperations(AlertInstances);

function getPage(items: any[], pagination: Pagination) {
return chunk(items, pagination.size)[pagination.index];
return chunk(items, pagination.size)[pagination.index] || [];
}

interface AlertInstanceListItemStatus {
Expand Down

0 comments on commit bfce131

Please sign in to comment.