diff --git a/games/static/js/utils.js b/games/static/js/utils.js index 5fc119f..df49497 100644 --- a/games/static/js/utils.js +++ b/games/static/js/utils.js @@ -75,6 +75,10 @@ function syncSelectInputUntilChanged(syncData, parentSelector = document) { * @param {string} property - The property to retrieve the value from. */ function getValueFromProperty(sourceElement, property) { + let source = + sourceElement instanceof HTMLSelectElement + ? sourceElement.selectedOptions[0] + : sourceElement; let source = sourceElement instanceof HTMLSelectElement ? sourceElement.selectedOptions[0]