Skip to content

Commit

Permalink
Fix for "phantom folder" when using direct links to feature layers
Browse files Browse the repository at this point in the history
  • Loading branch information
underbluewaters committed Dec 11, 2023
1 parent 093445f commit 7018eca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/client/src/admin/data/arcgis/ArcGISSearchPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export default function ArcGISSearchPage({
if (onResult) {
let catalogItem: CatalogItem | undefined;
let folder: CatalogItem | undefined;
if (location.location.split("/").length > 2) {
if (location.location.split("/").length > 3) {
const folderName = location.location.split("/")[1];
folder = {
name: folderName,
Expand Down

0 comments on commit 7018eca

Please sign in to comment.