Skip to content

Commit

Permalink
fix: a bug where a tab for a block is converted to a Journals tab whe…
Browse files Browse the repository at this point in the history
…n activating it
  • Loading branch information
pengx17 committed May 5, 2023
2 parents 6b8a196 + 38a6564 commit d94921a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/PageTabs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ function isTabEqual(
function isEqual(a?: string, b?: string) {
return a != null && b != null && a.toLowerCase() === b.toLowerCase();
}
if (tab?.name == getJournalsString() && !anotherTab?.name) {
if (tab?.name == getJournalsString() && !anotherTab?.uuid) { // not possible to check 'anotherTab.name == undefined' for Journal, because a tab for a block also has no name
return true;
}

Expand Down

0 comments on commit d94921a

Please sign in to comment.