mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
feat: reopen library menu on import from file (#3383)
Co-authored-by: Thang Vu <thang.huu.vu@mgm-tp.com>
This commit is contained in:
parent
233576628c
commit
67289ef4ce
3 changed files with 5 additions and 3 deletions
|
@ -3624,7 +3624,9 @@ class App extends React.Component<AppProps, AppState> {
|
|||
) {
|
||||
Library.importLibrary(file)
|
||||
.then(() => {
|
||||
// Close and then open to get the libraries updated
|
||||
this.setState({ isLibraryOpen: false });
|
||||
this.setState({ isLibraryOpen: true });
|
||||
})
|
||||
.catch((error) =>
|
||||
this.setState({ isLoading: false, errorMessage: error.message }),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue