Fix for back showing the options area even when there is no data.

This commit is contained in:
ebolam
2022-11-27 11:06:51 -05:00
parent 7141888163
commit a3103f14ba

View File

@@ -266,7 +266,6 @@ function create_options(action) {
if (action.id != current_action+1) {
return;
}
document.getElementById('main-grid').setAttribute('option_length', action.action.Options.length);
var option_chunk = document.getElementById("Select Options");
//first, let's clear out our existing data
@@ -294,9 +293,12 @@ function create_options(action) {
}
console.log("seen_prev_selection: "+seen_prev_selection+" show_options: "+show_options);
if (!(show_options)) {
document.getElementById('main-grid').setAttribute('option_length', 0);
return;
}
document.getElementById('main-grid').setAttribute('option_length', action.action.Options.length);
var table = document.createElement("div");
table.classList.add("sequences");
//Add Redo options