Skip to content

Commit 4aac16b

Browse files
committed
Fix stac browser button
1 parent 85a7748 commit 4aac16b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

packages/client/src/components/StacBrowserMenuItem.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import SmartLink from './SmartLink';
55

66
const baseStacBrowserUrl =
77
process.env.REACT_APP_STAC_BROWSER ||
8-
'https://radiantearth.github.io/stac-browser/#/external';
8+
`https://radiantearth.github.io/stac-browser/#/external/${process.env.REACT_APP_STAC_API}`;
99

1010
export function StacBrowserMenuItem(
1111
props: MenuItemProps & { resourcePath: string }

packages/client/src/pages/ItemDetail/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ function ItemDetail() {
108108
);
109109
}
110110

111-
const { title, description, ...properties } = item.properties;
111+
const { title, description, ...properties } = item.properties;
112112

113113
return (
114114
<Flex direction='column' gap={8}>
@@ -136,7 +136,7 @@ function ItemDetail() {
136136
/>
137137
<MenuList>
138138
<StacBrowserMenuItem
139-
resourcePath={`/collections/${properties.collection}/items/${properties.id}`}
139+
resourcePath={`/collections/${item.collection}/items/${item.id}`}
140140
/>
141141
<MenuItem
142142
icon={<CollecticonTrashBin />}

0 commit comments

Comments
 (0)