Skip to content

Commit

Permalink
fix: do not use nullish coalescing operator
Browse files Browse the repository at this point in the history
Closes: #1119
  • Loading branch information
targos committed Jul 14, 2021
1 parent 3b39563 commit 1503727
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/component/reducer/actions/ToolsActions.ts
Expand Up @@ -482,7 +482,7 @@ function setActiveTab(
const groupByNucleus = GroupByInfoKey('nucleus');
const dataGroupByNucleus = groupByNucleus(draft.data);
const tabs = Object.keys(dataGroupByNucleus);
const currentTab = !tab || !tabs.includes(tab ?? '') ? tabs[0] : tab;
const currentTab = !tab || !tabs.includes(tab || '') ? tabs[0] : tab;
setTab(draft, dataGroupByNucleus, currentTab, refreshTabActiveSpectrums);
resetTool(draft);

Expand Down

0 comments on commit 1503727

Please sign in to comment.