mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
fix: account for libraries v2 when prompting (#4263)
This commit is contained in:
parent
84d1d9993c
commit
e60e48e67d
1 changed files with 3 additions and 1 deletions
|
@ -655,7 +655,9 @@ class App extends React.Component<AppProps, AppState> {
|
||||||
if (
|
if (
|
||||||
token === this.id ||
|
token === this.id ||
|
||||||
window.confirm(
|
window.confirm(
|
||||||
t("alerts.confirmAddLibrary", { numShapes: json.library.length }),
|
t("alerts.confirmAddLibrary", {
|
||||||
|
numShapes: (json.libraryItems || json.library || []).length,
|
||||||
|
}),
|
||||||
)
|
)
|
||||||
) {
|
) {
|
||||||
await this.library.importLibrary(blob, "published");
|
await this.library.importLibrary(blob, "published");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue