|
@ -1611,7 +1611,8 @@ export default class AccountViewView extends Vue { |
|
|
async submitImportFile() { |
|
|
async submitImportFile() { |
|
|
if (inputImportFileNameRef.value != null) { |
|
|
if (inputImportFileNameRef.value != null) { |
|
|
await db.delete() |
|
|
await db.delete() |
|
|
.then(async (x) => { |
|
|
.then(async () => { |
|
|
|
|
|
// BulkError: settings.bulkAdd(): 1 of 21 operations failed. Errors: ConstraintError: Key already exists in the object store. |
|
|
await Dexie.import(inputImportFileNameRef.value as Blob, { |
|
|
await Dexie.import(inputImportFileNameRef.value as Blob, { |
|
|
progressCallback: this.progressCallback, |
|
|
progressCallback: this.progressCallback, |
|
|
}) |
|
|
}) |
|
|