Skip to content

Commit 3639392

Browse files
fix: simplified route's path check
1 parent d08dc10 commit 3639392

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

src/application/services/useNote.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -322,9 +322,7 @@ export default function (options: UseNoteComposableOptions): UseNoteComposableSt
322322
});
323323

324324
watch(noteTitle, (currentNoteTitle) => {
325-
const routes = ['/settings', '/history', '/error'];
326-
327-
if (routes.every(rt => !route.path.includes(rt))) {
325+
if (!route.path.match('/note/.{10}/')) {
328326
patchOpenedPageByUrl(
329327
route.path,
330328
{

0 commit comments

Comments
 (0)