From f0c90b51005949d43e9fa7a567df9d3d1e5e60e7 Mon Sep 17 00:00:00 2001 From: dperolio Date: Sat, 7 May 2022 13:31:01 -0400 Subject: [PATCH] whoops, that can be null; fix PrivateChannelsList dashboard button injection for real this time --- renderer/src/builtins/dashboard/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/renderer/src/builtins/dashboard/index.js b/renderer/src/builtins/dashboard/index.js index 6d0146f6..df58b9ea 100644 --- a/renderer/src/builtins/dashboard/index.js +++ b/renderer/src/builtins/dashboard/index.js @@ -112,7 +112,7 @@ export default class Dashboard extends Builtin { * Make sure there's a Dashboard button in the PrivateChannelsList, otherwise * prepend one. */ - if (!PrivateChannelsList.some(channel => channel.props?.text === 'Dashboard')) { + if (!PrivateChannelsList.some(channel => channel?.props?.text === 'Dashboard')) { PrivateChannelsList.unshift( }