Skip to content

Commit

Permalink
fix: Time singleton does not take defaults from configuration into ac…
Browse files Browse the repository at this point in the history
…count (closes #992)
  • Loading branch information
claustres committed Nov 18, 2024
1 parent e224a46 commit db40827
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/client/time.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export const Time = {
const end = now.clone().endOf('day')
// Try to guess user timezone
const timezone = moment.tz.guess() || ''
Store.set('time', _.merge(config.time || {}, {
Store.set('time', _.defaultsDeep(config.time || {}, {
range: {
start,
end,
Expand Down

0 comments on commit db40827

Please sign in to comment.