From ff4e6a7879263147e309196479ce58ae0b959358 Mon Sep 17 00:00:00 2001 From: Giulia Ghisini Date: Fri, 6 Dec 2024 16:25:37 +0100 Subject: [PATCH] fix selector --- .../src/components/manage/Contents/ContentsDeleteModal.jsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/volto/src/components/manage/Contents/ContentsDeleteModal.jsx b/packages/volto/src/components/manage/Contents/ContentsDeleteModal.jsx index 722c5a74fd..a9e1d27b4c 100644 --- a/packages/volto/src/components/manage/Contents/ContentsDeleteModal.jsx +++ b/packages/volto/src/components/manage/Contents/ContentsDeleteModal.jsx @@ -44,8 +44,8 @@ const ContentsDeleteModal = (props) => { const { itemsToDelete = [], open, onCancel, onOk, items } = props; const intl = useIntl(); const dispatch = useDispatch(); - const linkintegrityInfo = useSelector((state) => state.linkIntegrity.result); - const loading = useSelector((state) => state.linkIntegrity.loading); + const linkintegrityInfo = useSelector((state) => state.linkIntegrity?.result); + const loading = useSelector((state) => state.linkIntegrity?.loading); const [brokenReferences, setBrokenReferences] = useState(0); const [containedItemsToDelete, setContainedItemsToDelete] = useState([]);