Skip to content

Commit 059e646

Browse files
committed
Fix new note behavior from workspace control
1 parent cbea0bb commit 059e646

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/components/molecules/StorageNavigatorFragment.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,11 @@ const StorageNavigatorFragment = ({
6868
if (note == null) {
6969
return
7070
}
71-
push(`/app/storages/${storage.id}/notes${folderPathname}/${note._id}`)
71+
push(
72+
`/app/storages/${storage.id}/notes${
73+
folderPathname === '/' ? '' : folderPathname
74+
}/${note._id}`
75+
)
7276
dispatchNoteDetailFocusTitleInputEvent()
7377
},
7478
[storage.id, createNote, push, report]

0 commit comments

Comments
 (0)