Fix bug with imported assets not getting assigned ownership
This commit is contained in:
parent
90aa43dbf0
commit
9d587cb2b1
@ -234,7 +234,7 @@ function ImportExportModal({ isOpen, onRequestClose }) {
|
||||
.bulkGet(Object.keys(newAssetIds));
|
||||
let assets = [];
|
||||
for (let asset of assetsToAdd) {
|
||||
assets.push({ ...asset, id: newAssetIds[asset.id] });
|
||||
assets.push({ ...asset, id: newAssetIds[asset.id], owner: userId });
|
||||
}
|
||||
await db.table("assets").bulkAdd(assets);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user