1
0
mirror of https://github.com/beestat/app.git synced 2025-05-24 02:14:03 -04:00

Fixed #377 - Cannot clear Temperature Profiles > Custom Start Date

This commit is contained in:
Jon Ziebell 2022-12-07 18:56:43 -05:00
parent 6e67e83a7b
commit c516a93d3a

View File

@ -254,7 +254,10 @@ beestat.component.card.settings.prototype.decorate_contents_ = function(parent)
temperature_profiles_range_begin.addEventListener('change', function() {
var temperature_profiles_range_begin_value;
if (temperature_profiles_range_begin.meets_requirements() === true) {
if (
temperature_profiles_range_begin.meets_requirements() === true &&
this.get_value() !== undefined
) {
temperature_profiles_range_begin_value = this.get_value();
} else {
this.set_value('', false);