@opentripplanner/core-utils
Advanced tools
Comparing version 3.0.0 to 3.0.1
@@ -97,5 +97,5 @@ "use strict"; | ||
function getTransitOperatorComparatorValue(route, transitOperators) { | ||
// if the transitOperators is undefined, use the route's agency name as the | ||
// comparator value | ||
if (!transitOperators) { | ||
// if the transitOperators is undefined or has zero length, use the route's | ||
// agency name as the comparator value | ||
if (!transitOperators || transitOperators.length === 0) { | ||
// OTP Route | ||
@@ -102,0 +102,0 @@ if (route.agency) return route.agency.name; // OTP RouteShort (base OTP repo or IBI fork) |
{ | ||
"name": "@opentripplanner/core-utils", | ||
"version": "3.0.0", | ||
"version": "3.0.1", | ||
"description": "Core functionality that is shared among numerous UI components", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -101,5 +101,5 @@ /** | ||
function getTransitOperatorComparatorValue(route, transitOperators) { | ||
// if the transitOperators is undefined, use the route's agency name as the | ||
// comparator value | ||
if (!transitOperators) { | ||
// if the transitOperators is undefined or has zero length, use the route's | ||
// agency name as the comparator value | ||
if (!transitOperators || transitOperators.length === 0) { | ||
// OTP Route | ||
@@ -106,0 +106,0 @@ if (route.agency) return route.agency.name; |
248712