Merge pull request #997 from Tesseract1234567890/sleevesUIFix

Allowed Sleeves UI to update on workout change via API
This commit is contained in:
hydroflame 2021-06-07 19:45:25 -04:00 committed by GitHub
commit d9da1a8568
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -561,7 +561,7 @@ function updateSleeveTaskSelector(sleeve: Sleeve, elems: ISleeveUIElems, allSlee
elems.taskDetailsSelector.add(createOptionElement(gymSelectorOptions[i]));
// Set initial value
if (sleeve.gymStatType === gymSelectorOptions[i]) {
if (sleeve.gymStatType === gymSelectorOptions[i].substring(6, 9).toLowerCase()) {
elems.taskDetailsSelector.selectedIndex = i;
}
}