Skip to content
This repository has been archived by the owner on Feb 28, 2024. It is now read-only.

Commit

Permalink
fix: reference error in multiple views
Browse files Browse the repository at this point in the history
  • Loading branch information
manzt committed Jul 7, 2023
1 parent a95bdba commit 81b5c3a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions higlass_widget/widget.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,13 @@ export async function render({ model, el }) {
model.save_changes();
}, viewconf.views[0].uid);
} else {
viewconf.views.forEach((_view, idx) => {
viewconf.views.forEach((view, idx) => {
api.on("location", (loc) => {
let copy = model.get("location").slice();
copy[idx] = toPts(loc);
model.set("location", copy);
model.save_changes();
}, uid);
}, view.uid);
});
}
}

0 comments on commit 81b5c3a

Please sign in to comment.