Fixed WSOD bug when deleting account/channel and details becomes null before delete modal is removed

This commit is contained in:
tyler 2024-06-01 14:18:32 -04:00
parent 0bf60429ec
commit 983c031325
2 changed files with 1 additions and 3 deletions

View file

@ -19,8 +19,6 @@ Rum Goggles Service:
# Bugs # Bugs
Windows 10: white screen of death when deleting accounts/channels
Chat bot rule menu back button does not work in macOS Chat bot rule menu back button does not work in macOS
If connection to chat stream breaks, gracefully handle error If connection to chat stream breaks, gracefully handle error

View file

@ -352,7 +352,7 @@ function PageDetails(props) {
onClose={resetDelete} onClose={resetDelete}
deleteButton={deleting ? 'Deleting' : 'Delete'} deleteButton={deleting ? 'Deleting' : 'Delete'}
onDelete={deletePage} onDelete={deletePage}
deleteActive={details.title === deleteName} deleteActive={details === null ? false : details.title === deleteName}
pageName={details.title} pageName={details.title}
show={openDelete} show={openDelete}
style={{ style={{