Skip to content

Commit

Permalink
avoids duplicated layer sources
Browse files Browse the repository at this point in the history
  • Loading branch information
agnlez committed Nov 29, 2023
1 parent cefcff2 commit 5c71d1c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ const PopupContainer = () => {

const setPopup = useSetAtom(popupAtom);

const availableSources = popup?.features?.map(({ source }) => source);
const availableSources = Array.from(new Set(popup?.features?.map(({ source }) => source)));

const { data: layersInteractiveData } = useGetLayers(
{
Expand Down

0 comments on commit 5c71d1c

Please sign in to comment.