Skip to content

Commit

Permalink
Merge pull request #1425 from flanksource/1411-topology-sorting-not-w…
Browse files Browse the repository at this point in the history
…orking

fix: fix topology sorting is not working
  • Loading branch information
moshloop authored Sep 26, 2023
2 parents 764bef2 + 03e420c commit 84ad880
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/pages/TopologyPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,8 @@ export function TopologyPage() {
const topologyType = searchParams.get("type") ?? "All";
const healthStatus = searchParams.get("status") ?? "All";
const refererId = searchParams.get("refererId") ?? undefined;
const sortBy = searchParams.get("sortBy") ?? undefined;
const sortOrder = searchParams.get("sortOrder") ?? undefined;
const showHiddenComponents =
searchParams.get("showHiddenComponents") ?? undefined;

Expand All @@ -91,7 +93,9 @@ export function TopologyPage() {
team,
selectedLabel,
topologyType,
showHiddenComponents
showHiddenComponents,
sortBy,
sortOrder
],
() => {
loadingBarRef.current?.continuousStart();
Expand All @@ -101,6 +105,8 @@ export function TopologyPage() {
type: topologyType,
team: team,
labels: selectedLabel,
sortBy,
sortOrder,
// only flatten, if topology type is set
...(topologyType &&
topologyType.toString().toLowerCase() !== "all" && {
Expand Down

0 comments on commit 84ad880

Please sign in to comment.