Really fixed WSOD when deleting account/channel
This commit is contained in:
parent
983c031325
commit
3f29337fd6
|
@ -344,7 +344,7 @@ function PageDetails(props) {
|
||||||
onSubmit={() => setError('')}
|
onSubmit={() => setError('')}
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
{openDelete && (
|
{openDelete && details !== null && (
|
||||||
<Modal
|
<Modal
|
||||||
backgroundClose={true}
|
backgroundClose={true}
|
||||||
cancelButton={'Cancel'}
|
cancelButton={'Cancel'}
|
||||||
|
@ -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 === null ? false : details.title === deleteName}
|
deleteActive={details.title === deleteName}
|
||||||
pageName={details.title}
|
pageName={details.title}
|
||||||
show={openDelete}
|
show={openDelete}
|
||||||
style={{
|
style={{
|
||||||
|
|
Loading…
Reference in a new issue