Skip to content

Commit

Permalink
fix: referencing activeStatus for undefined (openedx#943)
Browse files Browse the repository at this point in the history
  • Loading branch information
KristinAoki authored Apr 10, 2024
1 parent fdcda98 commit fd6b9ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/files-and-videos/generic/DeleteConfirmationModal.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const DeleteConfirmationModal = ({
const firstSelectedRow = selectedRows[0]?.original;
let activeContentRows = [];
if (Array.isArray(selectedRows)) {
activeContentRows = selectedRows.filter(row => row.original.activeStatus === 'active');
activeContentRows = selectedRows.filter(row => row.original?.activeStatus === 'active');
}
const isDeletingCourseContent = activeContentRows.length > 0;

Expand Down

0 comments on commit fd6b9ae

Please sign in to comment.