Skip to content

Commit

Permalink
don't recompute custom selection markers on reload
Browse files Browse the repository at this point in the history
  • Loading branch information
jkanche committed Jul 23, 2022
1 parent 6bff9a9 commit 8c94afe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ const App = () => {
// when a new custom selection of cells is made through the UI
useEffect(() => {

if (customSelection !== null && Object.keys(customSelection).length > 0) {
if (customSelection !== null && Object.keys(customSelection).length > 0 && !initLoadState) {
let csLen = `cs${Object.keys(customSelection).length}`;
var cs = customSelection[csLen].sort((a, b) => { return a-b });
scranWorker.postMessage({
Expand Down

0 comments on commit 8c94afe

Please sign in to comment.