Skip to content

Commit

Permalink
fix: useMapServerQuery return url array
Browse files Browse the repository at this point in the history
  • Loading branch information
lightlii committed Aug 14, 2023
1 parent cf876de commit 8690abe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/renderer/hooks/useMapServerQuery.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export function useMapServerQuery (resourcePath, enabled) {
queryKey: [resourcePath, resourcePath.split('/')[2] || undefined],
queryFn: async () => {
const result = await ky.get(MAP_SERVER_URL + resourcePath).json()
return result?.url
return result.map(({ url }) => url)
},

enabled
Expand Down

0 comments on commit 8690abe

Please sign in to comment.