Skip to content

Commit

Permalink
Merge pull request #331 from Kitware/fix-saving-remote-files
Browse files Browse the repository at this point in the history
fix(fileLoader): Regression on not saving URL for remote files
  • Loading branch information
floryst authored May 4, 2020
2 parents eae975d + ebb4011 commit 6312a28
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/store/fileLoader.js
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,14 @@ export default (proxyManager) => ({
let ret = [];
for (let i = 0; i < fileList.length; i++) {
const f = fileList[i];
const readerBundle = { ...f.reader };
const readerBundle = {
...f.reader,
metadata: f.reader.metadata || {},
};

if (f.remoteURL) {
Object.assign(readerBundle.metadata, { url: f.remoteURL });
}

const meta = f.proxyKeys && f.proxyKeys.meta;
if (meta) {
Expand Down

0 comments on commit 6312a28

Please sign in to comment.