From 728b3a3a1b86563e642c732a0ffa4a089bfad626 Mon Sep 17 00:00:00 2001 From: or-else Date: Fri, 28 Jan 2022 10:17:14 -0800 Subject: [PATCH] crash on missing topic parameters, ranamed var for clarity --- src/views/new-topic-view.jsx | 9 +- src/views/tinode-web.jsx | 6 +- src/widgets/search-contacts.jsx | 1 - umd/index.dev.js | 39 +- umd/index.dev.js.map | 2 +- umd/index.prod.js | 2 +- umd/index.prod.js.map | 2 +- umd/tinode.dev.js | 1114 +++++++++++++++++++------------ umd/tinode.prod.js | 2 +- 9 files changed, 706 insertions(+), 471 deletions(-) diff --git a/src/views/new-topic-view.jsx b/src/views/new-topic-view.jsx index 6cebbcbb..2af18656 100644 --- a/src/views/new-topic-view.jsx +++ b/src/views/new-topic-view.jsx @@ -35,7 +35,7 @@ class NewTopicView extends React.Component { super(props); this.state = { - tabSelected: 'p2p', + tabSelected: 'find', searchQuery: null }; @@ -62,7 +62,7 @@ class NewTopicView extends React.Component { } handleContactSelected(uid) { - if (this.state.tabSelected == 'p2p') { + if (this.state.tabSelected == 'find') { HashNavigation.navigateTo(HashNavigation.removeUrlParam(window.location.hash, 'tab')); this.props.onCreateTopic(uid); } @@ -87,8 +87,8 @@ class NewTopicView extends React.Component { return (