From 4d0ba57c1dcd8aeaaa9184c198b1d9824f6081a8 Mon Sep 17 00:00:00 2001 From: Matt Holtzman Date: Mon, 14 Aug 2023 14:08:50 -0400 Subject: [PATCH] fix account view errors when request does not exist --- app/tray/Account/Account.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/tray/Account/Account.js b/app/tray/Account/Account.js index 0c9b47222..5db4583f0 100644 --- a/app/tray/Account/Account.js +++ b/app/tray/Account/Account.js @@ -259,7 +259,7 @@ class _AccountBody extends React.Component { if (crumb.view === 'requestView') { const { accountId, requestId } = crumb.data const req = this.store('main.accounts', accountId, 'requests', requestId) - const accountViewTitle = this.getAccountViewTitle(req) + const accountViewTitle = (req && this.getAccountViewTitle(req)) || '' return ( - {this.renderRequest(req, crumb.data)} + {req && this.renderRequest(req, crumb.data)} ) } else if (crumb.view === 'expandedModule') {