Fix bug with imported assets not getting assigned ownership

This commit is contained in:
Mitchell McCaffrey 2021-06-25 20:39:12 +10:00
parent 90aa43dbf0
commit 9d587cb2b1

View File

@ -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);