From fd6b9ae3a6d7e4059ae7687d85afe668e43bdb4b Mon Sep 17 00:00:00 2001 From: Kristin Aoki <42981026+KristinAoki@users.noreply.github.com> Date: Wed, 10 Apr 2024 14:50:40 -0400 Subject: [PATCH] fix: referencing activeStatus for undefined (#943) --- src/files-and-videos/generic/DeleteConfirmationModal.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/files-and-videos/generic/DeleteConfirmationModal.jsx b/src/files-and-videos/generic/DeleteConfirmationModal.jsx index 087e4665f..bbcb3ab7e 100644 --- a/src/files-and-videos/generic/DeleteConfirmationModal.jsx +++ b/src/files-and-videos/generic/DeleteConfirmationModal.jsx @@ -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;