mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
simplify
This commit is contained in:
parent
0d564bcf05
commit
2351798a87
1 changed files with 7 additions and 3 deletions
|
@ -1777,10 +1777,14 @@ class App extends React.Component<AppProps, AppState> {
|
|||
this.setState({ errorMessage: error.message });
|
||||
});
|
||||
|
||||
if (type === "clipboard" || (fileHandle && isImageFileHandle(fileHandle))) {
|
||||
if (
|
||||
type === "clipboard" ||
|
||||
(this.state.exportEmbedScene &&
|
||||
fileHandle &&
|
||||
isImageFileHandle(fileHandle))
|
||||
) {
|
||||
this.setState({
|
||||
fileHandle:
|
||||
fileHandle && this.state.exportEmbedScene ? fileHandle : null,
|
||||
fileHandle: fileHandle ?? null,
|
||||
openDialog: null,
|
||||
toast: {
|
||||
message:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue