Skip to content

Commit a901e5b

Browse files
committed
⏪ Revert commit a2537fa
1 parent 1fc2f8e commit a901e5b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

app/js/query.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ export default class Query {
221221

222222
// If the corresponding value for an input field is available, try to set it
223223
const key = 'permalink' in input ? input.permalink : input.id;
224-
const value = Object.prototype.hasOwnProperty.call(values, key) ? values[key] : (DEFAULTS.UI[key] || element.value);
224+
const value = Object.prototype.hasOwnProperty.call(values, key) ? values[key] : (DEFAULTS.UI[key] || null);
225225
element.type === 'checkbox' ? element.checked = (value === true || value === 'true') : element.value = value; // eslint-disable-line no-unused-expressions
226226

227227
// Call the handler by triggering a new change event on the element

0 commit comments

Comments
 (0)