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

pull/4264/head
David Luzar 3 years ago committed by GitHub
parent 84d1d9993c
commit e60e48e67d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -655,7 +655,9 @@ class App extends React.Component<AppProps, AppState> {
if (
token === this.id ||
window.confirm(
t("alerts.confirmAddLibrary", { numShapes: json.library.length }),
t("alerts.confirmAddLibrary", {
numShapes: (json.libraryItems || json.library || []).length,
}),
)
) {
await this.library.importLibrary(blob, "published");

Loading…
Cancel
Save