Skip to content

Commit

Permalink
fix(Navigation/MapNode): filter parameter doesn't work from url [YTFR…
Browse files Browse the repository at this point in the history
…ONT-4481]
  • Loading branch information
ma-efremoff committed Feb 7, 2025
1 parent bf748de commit 5b1eb1b
Showing 1 changed file with 17 additions and 11 deletions.
28 changes: 17 additions & 11 deletions packages/ui/src/ui/store/reducers/navigation/url-mapping.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,18 +103,24 @@ export const getNavigationParams = (): LocationParameters => {
}, params);
};

const GET_PREPARED_STATE = [
getNavigationMapNodePreparedState,
getNavigationMapNodeFlowPreparedState,
getNavigationTablePreparedState,
getNavigationTransactionMapPreparedState,
getNavigationConsumerPreparedState,
getNavigationQueuePreparedState,
getAclFiltersPreparedState,
getNavigationSchemaPreparedState,
getNavigationTabletsPreparedState,
getNavigationTabletErrorsPreparedState,
];

function getNavigationNodeTypesPreparedState(state: RootState, location: {query: RootState}) {
let res = getNavigationMapNodePreparedState(state, location);
res = getNavigationMapNodeFlowPreparedState(state, location);
res = getNavigationTablePreparedState(res, location);
res = getNavigationTransactionMapPreparedState(res, location);
res = getNavigationConsumerPreparedState(res, location);
res = getNavigationQueuePreparedState(res, location);
res = getAclFiltersPreparedState(res, location);
res = getNavigationSchemaPreparedState(res, location);
res = getNavigationTabletsPreparedState(res, location);
res = getNavigationTabletErrorsPreparedState(res, location);
return res;
return GET_PREPARED_STATE.reduce(
(acc, getPreparedState) => getPreparedState(acc, location),
state,
);
}

export function getNavigationPreparedState(state: RootState, location: {query: RootState}) {
Expand Down

0 comments on commit 5b1eb1b

Please sign in to comment.