Преглед изворни кода

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

vanilla_orig
David Luzar пре 3 година
родитељ
комит
e60e48e67d
No account linked to committer's email address
1 измењених фајлова са 3 додато и 1 уклоњено
  1. 3
    1
      src/components/App.tsx

+ 3
- 1
src/components/App.tsx Прегледај датотеку

@@ -655,7 +655,9 @@ class App extends React.Component<AppProps, AppState> {
655 655
       if (
656 656
         token === this.id ||
657 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 663
         await this.library.importLibrary(blob, "published");

Loading…
Откажи
Сачувај