Skip to content

Commit

Permalink
fix: fix topology sorting is not working
Browse files Browse the repository at this point in the history
Closes #1411
  • Loading branch information
mainawycliffe committed Sep 25, 2023
1 parent 43a0d14 commit 03e420c
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 03e420c

Please sign in to comment.