diff --git a/client/src/components/layer-editor/layers/queryLayerSource.tsx b/client/src/components/layer-editor/layers/queryLayerSource.tsx index 8f3d294d..7c29c46e 100644 --- a/client/src/components/layer-editor/layers/queryLayerSource.tsx +++ b/client/src/components/layer-editor/layers/queryLayerSource.tsx @@ -12,6 +12,7 @@ import { LayerSource, inferLayerName } from "./LayerSource"; import { Option } from "./Option"; import { MapLayerData } from "./mapLayerSource"; import { TraceLayerData, traceLayerSource } from "./traceLayerSource"; +import { Typography as Type } from "@mui/material"; async function findConnection( connections: Connection[], @@ -41,43 +42,54 @@ export const queryLayerSource: LayerSource<"query", QueryLayerData> = { const [{ algorithms }] = useFeatures(); const [connections] = useConnections(); const filteredLayers = filter(layers, (c) => c.source?.type === "map"); + const selectedLayer = find(filteredLayers, { key: mapLayerKey }); return ( <>