Skip to content

Commit 985deb7

Browse files
fix: added check on noteTitle's url patch
Added check to prevent Note Settings page patch
1 parent 49b599f commit 985deb7

1 file changed

Lines changed: 8 additions & 6 deletions

File tree

src/application/services/useNote.ts

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -322,12 +322,14 @@ export default function (options: UseNoteComposableOptions): UseNoteComposableSt
322322
});
323323

324324
watch(noteTitle, (currentNoteTitle) => {
325-
patchOpenedPageByUrl(
326-
route.path,
327-
{
328-
title: currentNoteTitle,
329-
url: route.path,
330-
});
325+
if (!route.path.includes('/settings')) {
326+
patchOpenedPageByUrl(
327+
route.path,
328+
{
329+
title: currentNoteTitle,
330+
url: route.path,
331+
});
332+
}
331333
});
332334

333335
return {

0 commit comments

Comments
 (0)