From 6c6a5f585783ede7054d10d7401211a21bbcf873 Mon Sep 17 00:00:00 2001 From: vivienzhou2014 Date: Tue, 26 Mar 2024 11:46:24 -0700 Subject: [PATCH] fixed the line 437 that 0 is ignored when initial_zoom is defined as 0 Co-authored-by: Jesus Garcia Loyola Co-authored-by: Abrham Tamiru --- src/js/timeline/Timeline.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/js/timeline/Timeline.js b/src/js/timeline/Timeline.js index 97106097..b3103c37 100644 --- a/src/js/timeline/Timeline.js +++ b/src/js/timeline/Timeline.js @@ -434,7 +434,7 @@ class Timeline { this._timenav.init(); // intial_zoom cannot be applied before the timenav has been created - if (this.options.initial_zoom) { + if (this.options.initial_zoom !== undefined && this.options.initial_zoom !== null) { // at this point, this.options refers to the merged set of options this.setZoom(this.options.initial_zoom); }