File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1205,7 +1205,7 @@ var unbxdSearchInit = function(jQuery, Handlebars){
1205
1205
format : "json"
1206
1206
, page : 1
1207
1207
, rows : 12
1208
- , view : this . options . viewTypes [ 0 ]
1208
+ , view : ( this . options . viewTypes !== undefined && this . options . viewTypes . length > 0 ? this . options . viewTypes [ 0 ] : "" )
1209
1209
}
1210
1210
} ;
1211
1211
@@ -1300,7 +1300,7 @@ var unbxdSearchInit = function(jQuery, Handlebars){
1300
1300
params . extra . page = ( parseInt ( obj . start ) / parseInt ( params . extra . rows ) ) + 1 ;
1301
1301
1302
1302
if ( ! ( "view" in obj ) ) {
1303
- params . extra . view = this . options . viewTypes [ 0 ] ;
1303
+ params . extra . view = ( this . options . viewTypes !== undefined && this . options . viewTypes . length > 0 ? this . options . viewTypes [ 0 ] : "" ) ;
1304
1304
} else {
1305
1305
params . extra . view = obj [ "view" ] ;
1306
1306
}
You can’t perform that action at this time.
0 commit comments