mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
Update App.tsx
This commit is contained in:
parent
4e863e5796
commit
1eaae767dc
1 changed files with 1 additions and 1 deletions
|
@ -2952,7 +2952,7 @@ class App extends React.Component<AppProps, AppState> {
|
|||
this.setState({ errorMessage: t("errors.imageToolNotSupported") });
|
||||
return;
|
||||
}
|
||||
for (const file of event.clipboardData.files) {
|
||||
for (const file of event.clipboardData?.files ?? []) {
|
||||
const imageElement = this.createImageElement({ sceneX, sceneY });
|
||||
this.insertImageElement(imageElement, file);
|
||||
this.initializeImageDimensions(imageElement);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue