Skip to content

Commit

Permalink
fix(annotations): redirect to safe type
Browse files Browse the repository at this point in the history
  • Loading branch information
Novout committed Mar 27, 2023
1 parent 8cb039d commit 4163e57
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/better-write-plugin-annotations/src/set.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export const PluginAnnotationsSet = (
const reset = (force: boolean = false) => {
document.querySelector('.milkdown')?.remove()

if (force) stores.PROJECT.base = 'chapter'
if (force) stores.PROJECT.base = stores.PROJECT.type === 'only-annotations' ? 'annotations' : 'chapter'
}

const setFile = (id: ID<string>, value: any) => {
Expand Down

0 comments on commit 4163e57

Please sign in to comment.