From b41ee34c36137ebd9ebae90eadbb582d511c6318 Mon Sep 17 00:00:00 2001 From: Michael Pilosov Date: Sat, 9 Dec 2023 15:15:35 -0700 Subject: [PATCH] bugfix: refreshing page causes column re-ordering --- src/parallel/parallel.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/parallel/parallel.tsx b/src/parallel/parallel.tsx index 754c8471..b2fd8eed 100644 --- a/src/parallel/parallel.tsx +++ b/src/parallel/parallel.tsx @@ -267,8 +267,8 @@ export class ParallelPlot extends React.Component e == a); - const pdb = this.state.order.findIndex((e) => e == b); + const pda = this.state.order.findIndex((e) => e == b); + const pdb = this.state.order.findIndex((e) => e == a); return (pdb == -1 ? this.state.order.length : pdb) - (pda == -1 ? this.state.order.length : pda); }.bind(this)); this.setState({