diff --git a/src/simularium/VisDataCache.ts b/src/simularium/VisDataCache.ts index c3bd3775..0c42e540 100644 --- a/src/simularium/VisDataCache.ts +++ b/src/simularium/VisDataCache.ts @@ -110,7 +110,7 @@ class VisDataCache { } public getFirstFrameTime(): number { - return this.head ? this.head.data.time : -1; + return this.head?.data.time || -1; } public getLastFrame(): CachedFrame {