kopia lustrzana https://github.com/Tldraw/Tldraw
fix: copy and paste without selection occurs error (#1135)
* Add optional chaining * dont allow empty clipboard data --------- Co-authored-by: Steve Ruiz <steveruizok@gmail.com>pull/1164/head
rodzic
a9f1a6ccc7
commit
80b4f5aedd
|
@ -1802,6 +1802,9 @@ export class TldrawApp extends StateManager<TDSnapshot> {
|
|||
|
||||
const jsonString = JSON.stringify({
|
||||
type: 'tldr/clipboard',
|
||||
shapes: [],
|
||||
assets: [],
|
||||
bindings: [],
|
||||
...this.clipboard,
|
||||
})
|
||||
|
||||
|
@ -2183,6 +2186,9 @@ export class TldrawApp extends StateManager<TDSnapshot> {
|
|||
|
||||
const tldrawString = JSON.stringify({
|
||||
type: 'tldr/clipboard',
|
||||
shapes: [],
|
||||
assets: [],
|
||||
bindings: [],
|
||||
...this.clipboard,
|
||||
})
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue