Skip to content
This repository has been archived by the owner on Dec 1, 2022. It is now read-only.

Commit

Permalink
Add writable=true to layer collection query in forms (#1033)
Browse files Browse the repository at this point in the history
  • Loading branch information
hoanphungt authored Jan 14, 2022
1 parent ddde054 commit 94c8bfe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/data_management/rasters/RasterLayerForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ export const fetchRasterSources = async (uuid: string, searchQuery: string) => {

// Helper function to fetch paginated layer collections with search query
export const fetchLayerCollections = async (searchQuery: string) => {
const urlQuery = searchQuery ? `?page_size=20&slug__icontains=${searchQuery}` : '?page_size=20';
const urlQuery = searchQuery ? `?page_size=20&writable=true&slug__icontains=${searchQuery}` : '?page_size=20&writable=true';
const response = await fetch(
`/api/v4/layercollections/${urlQuery}`
);
Expand Down

0 comments on commit 94c8bfe

Please sign in to comment.