whoops, that can be null; fix PrivateChannelsList dashboard button injection for real this time

pull/106/head
dperolio 2 years ago
parent 9fa8679e3d
commit f0c90b5100
No known key found for this signature in database
GPG Key ID: 4191689562D51409

@ -112,7 +112,7 @@ export default class Dashboard extends Builtin {
* Make sure there's a Dashboard button in the PrivateChannelsList, otherwise * Make sure there's a Dashboard button in the PrivateChannelsList, otherwise
* prepend one. * prepend one.
*/ */
if (!PrivateChannelsList.some(channel => channel.props?.text === 'Dashboard')) { if (!PrivateChannelsList.some(channel => channel?.props?.text === 'Dashboard')) {
PrivateChannelsList.unshift( PrivateChannelsList.unshift(
<LinkButton <LinkButton
icon={() => <Icon name='vizality' />} icon={() => <Icon name='vizality' />}

Loading…
Cancel
Save