mirror of
https://github.com/getredash/redash.git
synced 2026-05-09 03:03:08 -04:00
Fix: date range does not update in dashboard
Replace the whole dateRange object in scope instead of changing min and max properties one-by-one. Given how angular `$watch` works with Moment.js object, I wrote some comment to clarify the right way to update dateRange.
This commit is contained in:
@@ -78,8 +78,10 @@
|
||||
}
|
||||
});
|
||||
});
|
||||
$scope.dateRange.min = minDateRange;
|
||||
$scope.dateRange.max = maxDateRange;
|
||||
$scope.dateRange = {
|
||||
min: minDateRange,
|
||||
max: maxDateRange
|
||||
};
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user