Skip to content

Commit

Permalink
fix: geoAssets is a map-like and not array-like object
Browse files Browse the repository at this point in the history
  • Loading branch information
toloudis committed Nov 7, 2023
1 parent 14756f2 commit 863fe75
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/controller/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,7 @@ export default class SimulariumController {
throw new Error("File must be a .simularium file");
}

if (geoAssets && geoAssets.length) {
if (geoAssets) {
return this.changeFile({ simulariumFile, geoAssets }, fileName);
} else {
return this.changeFile({ simulariumFile }, fileName);
Expand Down

0 comments on commit 863fe75

Please sign in to comment.