Commit e280688 1 parent cb2b96f commit e280688 Copy full SHA for e280688
File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -55,14 +55,14 @@ if (boundary && typeof boundary === 'string' && settings.value!.polygons_extra)
55
55
if (route .params .p1 ) {
56
56
const match = route .params .p1 .toString ().match (regexForCategoryIds )
57
57
58
- if (! match || (! route .path .endsWith (' /' ) && match .groups && (match .groups .cartocode || match .groups .reference || match .groups .osm )))
58
+ if (! match || (route .path .endsWith (' /' ) && match .groups && (match .groups .cartocode || match .groups .reference || match .groups .osm )))
59
59
throw createError ({ statusCode: 400 , message: ` No match for category ID: ${route .params .p1 } ` })
60
60
61
61
categoryIds .value = match .input ?.split (' ,' ).map (id => Number .parseInt (id ))
62
62
}
63
63
64
64
// Get POI ID from URL
65
- if (categoryIds .value ?.length === 1 && route .name === ' index-p1' && route .path .endsWith (' /' )) {
65
+ if (categoryIds .value ?.length === 1 && route .name === ' index-p1' && ! route .path .endsWith (' /' )) {
66
66
poiId .value = route .params .p1 ?.toString ()
67
67
categoryIds .value = undefined
68
68
}
Original file line number Diff line number Diff line change @@ -55,14 +55,14 @@ if (boundary && typeof boundary === 'string' && settings.value!.polygons_extra)
55
55
if (route .params .p1 ) {
56
56
const match = route .params .p1 .toString ().match (regexForCategoryIds )
57
57
58
- if (! match || (! route .path .endsWith (' /' ) && match .groups && (match .groups .cartocode || match .groups .reference || match .groups .osm )))
58
+ if (! match || (route .path .endsWith (' /' ) && match .groups && (match .groups .cartocode || match .groups .reference || match .groups .osm )))
59
59
throw createError ({ statusCode: 400 , message: ` No match for category ID: ${route .params .p1 } ` })
60
60
61
61
categoryIds .value = match .input ?.split (' ,' ).map (id => Number .parseInt (id ))
62
62
}
63
63
64
64
// Get POI ID from URL
65
- if (categoryIds .value ?.length === 1 && route .name === ' index-p1' && route .path .endsWith (' /' )) {
65
+ if (categoryIds .value ?.length === 1 && route .name === ' index-p1' && ! route .path .endsWith (' /' )) {
66
66
poiId .value = route .params .p1 ?.toString ()
67
67
categoryIds .value = undefined
68
68
}
You can’t perform that action at this time.
0 commit comments