Skip to content

Commit 26c7ef8

Browse files
Merge pull request #311 from codex-team/tabbar-overwrite-fix
Fix | added check on noteTitle's url patch
2 parents 403ae24 + 702dac9 commit 26c7ef8

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

src/application/services/useNote.ts

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -379,13 +379,14 @@ export default function (options: UseNoteComposableOptions): UseNoteComposableSt
379379
});
380380

381381
watch(noteTitle, (currentNoteTitle) => {
382-
patchOpenedPageByUrl(
383-
route.path,
384-
{
385-
title: currentNoteTitle,
386-
url: route.path,
387-
});
388-
382+
if (route.name == 'note') {
383+
patchOpenedPageByUrl(
384+
route.path,
385+
{
386+
title: currentNoteTitle,
387+
url: route.path,
388+
});
389+
}
389390
updateNoteHierarchyContent(noteHierarchy.value, lastUpdateContent.value);
390391
});
391392

0 commit comments

Comments
 (0)