@@ -286,7 +286,7 @@ export function initialiseFilter(filter) {
286286 if ( filter . Type !== undefined ) {
287287 tmp = [ ...filter . Type ]
288288 }
289- tmp = tmp . concat ( decodeURI ( filter . urlData ) . split ( `,` ) )
289+ tmp = tmp . concat ( decodeURI ( filter . urlData ) . split ( `,` ) . filter ( s => s . length > 0 ) )
290290
291291 filter . Type = tmp
292292 filter . csvField = true
@@ -298,7 +298,7 @@ export function initialiseFilter(filter) {
298298 if ( filter . Availability !== undefined ) {
299299 tmp = [ ...filter . Availability ]
300300 }
301- tmp = tmp . concat ( decodeURI ( filter . urlData ) . split ( `,` ) )
301+ tmp = tmp . concat ( decodeURI ( filter . urlData ) . split ( `,` ) . filter ( s => s . length > 0 ) )
302302
303303 filter . Availability = tmp
304304 filter . filterData = doSelectFilter
@@ -309,7 +309,7 @@ export function initialiseFilter(filter) {
309309 if ( filter . Connection !== undefined ) {
310310 tmp = [ ...filter . Connection ]
311311 }
312- tmp = tmp . concat ( decodeURI ( filter . urlData ) . split ( `,` ) )
312+ tmp = tmp . concat ( decodeURI ( filter . urlData ) . split ( `,` ) . filter ( s => s . length > 0 ) )
313313 filter . Connection = tmp
314314 filter . filterData = doConnectFilter
315315 filter . toUrl = ( ) => encodeURI ( tmp . join ( `,` ) )
@@ -346,7 +346,7 @@ export function initialiseFilter(filter) {
346346 if ( filter . Class !== undefined ) {
347347 tmp = [ ...filter . Class ]
348348 }
349- tmp = tmp . concat ( decodeURI ( filter . urlData ) . split ( `,` ) )
349+ tmp = tmp . concat ( decodeURI ( filter . urlData ) . split ( `,` ) . filter ( s => s . length > 0 ) )
350350 filter . MarketedAs = tmp
351351 filter . filterOn = `Class`
352352 filter . filterData = doSelectFilter
@@ -357,7 +357,7 @@ export function initialiseFilter(filter) {
357357 if ( filter . Anatomy !== undefined ) {
358358 tmp = [ ...filter . Anatomy ]
359359 }
360- tmp = tmp . concat ( decodeURI ( filter . urlData ) . split ( `,` ) )
360+ tmp = tmp . concat ( decodeURI ( filter . urlData ) . split ( `,` ) . filter ( s => s . length > 0 ) )
361361
362362 filter . TargetAnatomy = tmp
363363 filter . filterOn = `Anatomy`
0 commit comments