Skip to content

Commit

Permalink
one more fix to multi-file loading
Browse files Browse the repository at this point in the history
  • Loading branch information
toloudis committed Nov 7, 2023
1 parent 863fe75 commit 528fbc1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/Viewer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -271,8 +271,8 @@ class Viewer extends React.Component<InputParams, ViewerState> {
const geoAssets = filesArr.reduce((acc, cur, index) => {
if (index !== simulariumFileIndex) {
acc[cur.name] = parsedFiles[index];
return acc;
}
return acc;
}, {});
const fileName = filesArr[simulariumFileIndex].name;
this.loadFile(simulariumFile, fileName, geoAssets);
Expand Down

0 comments on commit 528fbc1

Please sign in to comment.