Skip to content

Commit 0dbb1f4

Browse files
committed
tiny refactor
1 parent 7908c10 commit 0dbb1f4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/plugins/home/public/application/components/tutorial_directory.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ class TutorialDirectoryUi extends React.Component {
199199

200200
renderTabContent = () => {
201201
const tab = this.tabs.find(({ id }) => id === this.state.selectedTabId);
202-
if (tab !== undefined && tab.content !== undefined) {
202+
if (tab?.content !== undefined) {
203203
return tab.content;
204204
}
205205

0 commit comments

Comments
 (0)