From 983c0313259a876ff233538fc3d9b14c8c13aeeb Mon Sep 17 00:00:00 2001 From: tyler Date: Sat, 1 Jun 2024 14:18:32 -0400 Subject: [PATCH] Fixed WSOD bug when deleting account/channel and details becomes null before delete modal is removed --- NOTES.md | 2 -- v1/frontend/src/components/PageDetails.jsx | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/NOTES.md b/NOTES.md index a4e18db..c10604e 100644 --- a/NOTES.md +++ b/NOTES.md @@ -19,8 +19,6 @@ Rum Goggles Service: # Bugs -Windows 10: white screen of death when deleting accounts/channels - Chat bot rule menu back button does not work in macOS If connection to chat stream breaks, gracefully handle error diff --git a/v1/frontend/src/components/PageDetails.jsx b/v1/frontend/src/components/PageDetails.jsx index d25c671..b9c28ec 100644 --- a/v1/frontend/src/components/PageDetails.jsx +++ b/v1/frontend/src/components/PageDetails.jsx @@ -352,7 +352,7 @@ function PageDetails(props) { onClose={resetDelete} deleteButton={deleting ? 'Deleting' : 'Delete'} onDelete={deletePage} - deleteActive={details.title === deleteName} + deleteActive={details === null ? false : details.title === deleteName} pageName={details.title} show={openDelete} style={{