Skip to content
Snippets Groups Projects
Commit da6a6418 authored by john's avatar john
Browse files

fix: do not let container selections run when adding annotations

parent 6e81f305
No related branches found
No related tags found
No related merge requests found
......@@ -328,6 +328,10 @@ class TrackChangesProvider {
const surface = this.getSurface()
const info = this.getInfo()
if (selection.isContainerSelection()) {
return console.warn('Cannot delete a container')
}
const transformation = (tx, args) => {
const newNode = {
selection: selection,
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment