Skip to content

Commit

Permalink
fix FileUtil loadmultiplejson
Browse files Browse the repository at this point in the history
  • Loading branch information
mathieuLivebardon committed Jun 16, 2023
1 parent d1ab204 commit 4f23755
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/browser/src/FileUtil.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,8 @@ export function loadMultipleJSON(urlArray) {

urlArray.forEach((url) => {
promises.push(
this.loadJSON(url).then((jsonResult) => {
const key = this.computeFileNameFromPath(url);
loadJSON(url).then((jsonResult) => {
const key = computeFileNameFromPath(url);
if (result[key]) throw new Error('conflict same key');
result[key] = jsonResult;
})
Expand Down

0 comments on commit 4f23755

Please sign in to comment.