fixed display bug when switching between professional and standard without saving in between
This commit is contained in:
@@ -877,14 +877,7 @@ function getListItems(list_el) {
|
||||
return items;
|
||||
}
|
||||
|
||||
// toggle professional
|
||||
dispFormatButton.addEventListener("click", () => {
|
||||
opt = getSelected(displayFormats);
|
||||
fetch("/display_format", {
|
||||
method: "PUT",
|
||||
body: JSON.stringify(opt),
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
|
||||
// gets which features are to be displayed
|
||||
@@ -896,7 +889,7 @@ function getDisplaying(){
|
||||
|
||||
let features = getListItems(list_el);
|
||||
|
||||
return features;
|
||||
return [features];
|
||||
} else if (opt.includes("Professional")) {
|
||||
|
||||
var top_list_el = document.getElementById("display-format");
|
||||
|
Reference in New Issue
Block a user