ソースを参照

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

vanilla_orig
David Luzar 3年前
コミット
e60e48e67d
コミッターのメールアドレスに関連付けられたアカウントが存在しません
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");

読み込み中…
キャンセル
保存