Skip to content

Commit

Permalink
Fixed bug in ignoreError function causing map/solar layers not to ren…
Browse files Browse the repository at this point in the history
  • Loading branch information
jkopb authored and corradio committed Mar 7, 2018
1 parent 28d500e commit a34ed26
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions web/src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -648,13 +648,13 @@ function handleConnectionReturnCode(err) {
}

const ignoreError = func =>
() => {
const callback = arguments[arguments.length - 1];
arguments[arguments.length - 1] = (err, obj) => {
(...args) => {
const callback = args[args.length - 1];
args[args.length - 1] = (err, obj) => {
if (err) { return callback(null, null); }
return callback(null, obj);
};
func.apply(this, arguments);
func.apply(this, args);
};

function fetch(showLoading, callback) {
Expand Down

0 comments on commit a34ed26

Please sign in to comment.