Skip to content

Commit

Permalink
fix(entity): remove item in empty raw property
Browse files Browse the repository at this point in the history
  • Loading branch information
Novout committed May 4, 2022
1 parent 3a9eeaa commit 613cd8d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/better-write-app/src/store/context.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ export const useContextStore = defineStore('context', {
}
},
removeInPage(entity: Entity) {
if (!entity || !entity.raw) return
if (!entity) return

const index = this.entities.indexOf(entity)

Expand Down

0 comments on commit 613cd8d

Please sign in to comment.