Skip to content

Commit

Permalink
(#875) Sortables not selected in the plot config "orderable" variable…
Browse files Browse the repository at this point in the history
…s are now properly removed
  • Loading branch information
adkinsrs committed Sep 6, 2024
1 parent 96762a7 commit c79f52f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions www/js/curator_common.js
Original file line number Diff line number Diff line change
Expand Up @@ -1494,10 +1494,11 @@ const updateOrderSortable = () => {
}

// Get all current plotting order series and save as a set
const sortableElts = document.querySelectorAll(".js-plot-order-sortable p");
// selector syntax from https://tobiasahlin.com/blog/previous-sibling-css-has/
const sortableElts = document.querySelectorAll("p:has(+ .js-plot-order-sortable)");
const sortableSet = new Set();
for (const elt of sortableElts) {
const series = elt.value;
const series = elt.textContent;
// These series already are categorical
if (series) {
sortableSet.add(series);
Expand Down

0 comments on commit c79f52f

Please sign in to comment.