Skip to content

Commit

Permalink
Merge pull request #879 from theduckylittle/fix/wrong-highlight-confi…
Browse files Browse the repository at this point in the history
…guration

Use the query.serviceName instead of serviceName for highlight
  • Loading branch information
klassenjs authored Nov 7, 2024
2 parents b352afd + 2d61597 commit 3b1cd1d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/gm3/selectors/query.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ import { getLayerFromPath } from "../actions/mapSource";
export const getAllResults = (state) => state.query.results;
export const getFilter = (state) => state.query.filter;
export const getServiceName = (state) => state.query.serviceName;
export const getQueryServiceName = (state) =>
state.query.query ? state.query.query.serviceName : "";
export const getHotFilter = (state) => state.query.hotFilter;

// TODO: Move this to a map sources selector
Expand Down Expand Up @@ -36,7 +38,7 @@ export const getFlatResults = createSelector(getAllResults, (results) => {
export const getHighlightResults = createSelector(
getAllResults,
getFilter,
getServiceName,
getQueryServiceName,
getMapSources,
getHotFilter,
(results, filter, serviceName, mapSources, hotFilter) => {
Expand Down

0 comments on commit 3b1cd1d

Please sign in to comment.