Skip to content

Commit

Permalink
Fix issue with query
Browse files Browse the repository at this point in the history
  • Loading branch information
spaaaacccee committed Nov 30, 2023
1 parent 1d8b76f commit c25d174
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 11 deletions.
5 changes: 3 additions & 2 deletions client/src/layers/query/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,8 @@ export const controller = {
</>
);
}),
service: withProduce(({ value, produce }) => {
service: withProduce(({ value, produce, onChange }) => {
const TraceLayerService = traceController.service;
const notify = useSnackbar();
const { algorithm, mapLayerKey, start, end } = value?.source ?? {};
const [{ layers: layers }] = useLayers();
Expand Down Expand Up @@ -178,7 +179,7 @@ export const controller = {
],
[mapLayer, connections, algorithm, start, end]
);
return <>{traceController.service}</>;
return <>{<TraceLayerService value={value} onChange={onChange} />}</>;
}),
inferName: (l) => l.source?.trace?.name ?? "Untitled Query",
getSelectionInfo: ({ children, event, layer: key }) => {
Expand Down
9 changes: 0 additions & 9 deletions resources/maps/Cross.grid

This file was deleted.

0 comments on commit c25d174

Please sign in to comment.