Skip to content

Commit

Permalink
Fix custom stac bug (#725)
Browse files Browse the repository at this point in the history
  • Loading branch information
giswqs committed Apr 16, 2024
1 parent 67a24ad commit 0a83b3e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion leafmap/stac.py
Original file line number Diff line number Diff line change
Expand Up @@ -1234,7 +1234,7 @@ def stac_collections(
list: A list of collection IDs.
"""
try:
client = stac_client(url, get_root=get_root, **kwargs)
client, _ = stac_client(url, get_root=get_root, **kwargs)
collections = client.get_all_collections()

if return_ids:
Expand Down
2 changes: 1 addition & 1 deletion leafmap/toolbar.py
Original file line number Diff line number Diff line change
Expand Up @@ -5564,7 +5564,7 @@ def endpoint_changed(change):
collection.value = None

collections = stac_collections(
endpoint.value, return_ids=True, **kwargs
endpoint.value, return_ids=True, get_root=False, **kwargs
)
if collections:
collections.sort()
Expand Down

0 comments on commit 0a83b3e

Please sign in to comment.