fix error

This commit is contained in:
BOYA,CHIU 2021-08-04 13:02:55 +08:00
parent e6429a8ea1
commit ae192c2847
1 changed files with 1 additions and 1 deletions

View File

@ -81,7 +81,7 @@
$.post( "/admin/ruling_buses/get_stops_and_code_for_city?locale=<%= I18n.locale %>", {city: $(self).val(), default_locale: default_locale}, function( data ) {
var options = [];
$.each(data['stops'], function (key,value) {
if (typeof(value).toLowerCase()!='string'){
if ((typeof(value)).toLowerCase()!='string'){
var id = value[0];
var v = value[1];
}else{