mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-25 22:38:56 +08:00
@@ -61,9 +61,7 @@ export const useJournalRouteHelper = () => {
|
||||
const openJournal = useCallback(
|
||||
(maybeDate: MaybeDate, newTab?: boolean) => {
|
||||
const page = getJournalByDate(maybeDate);
|
||||
workbench.openDoc(page.id, {
|
||||
at: newTab ? 'new-tab' : 'active',
|
||||
});
|
||||
workbench.openDoc(page.id, { at: newTab ? 'new-tab' : 'active' });
|
||||
track.$.navigationPanel.journal.navigate({
|
||||
to: 'journal',
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user