Browse Source

fix: account for libraries v2 when prompting (#4263)

vanilla_orig
David Luzar 3 years ago
parent
commit
e60e48e67d
No account linked to committer's email address
1 changed files with 3 additions and 1 deletions
  1. 3
    1
      src/components/App.tsx

+ 3
- 1
src/components/App.tsx View File

655
       if (
655
       if (
656
         token === this.id ||
656
         token === this.id ||
657
         window.confirm(
657
         window.confirm(
658
-          t("alerts.confirmAddLibrary", { numShapes: json.library.length }),
658
+          t("alerts.confirmAddLibrary", {
659
+            numShapes: (json.libraryItems || json.library || []).length,
660
+          }),
659
         )
661
         )
660
       ) {
662
       ) {
661
         await this.library.importLibrary(blob, "published");
663
         await this.library.importLibrary(blob, "published");

Loading…
Cancel
Save