Skip to content

Commit

Permalink
fix(editor): not remove last element in delete key
Browse files Browse the repository at this point in the history
  • Loading branch information
Novout committed Oct 19, 2021
1 parent d2b47a5 commit a3812e5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/components/editor/entity/EditorEntityShow.vue
Original file line number Diff line number Diff line change
Expand Up @@ -513,6 +513,8 @@
e.preventDefault()
e.stopPropagation()
if (_index.value <= 1) return
if (entity.utils().isFixed(_index.value - 1)) return
store.commit('context/insertRawInExistentEntity', props.entity)
Expand Down

0 comments on commit a3812e5

Please sign in to comment.