fix: prevent deleting shape in session (#853)
This commit is contained in:
parent
3d4544548b
commit
2c53fb3d57
1 changed files with 2 additions and 0 deletions
|
@ -3029,6 +3029,8 @@ export class TldrawApp extends StateManager<TDSnapshot> {
|
|||
*/
|
||||
delete = (ids = this.selectedIds): this => {
|
||||
if (ids.length === 0) return this
|
||||
|
||||
if (this.session) return this
|
||||
const drawCommand = Commands.deleteShapes(this, ids)
|
||||
|
||||
if (
|
||||
|
|
Loading…
Reference in a new issue