Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -265,9 +265,7 @@ export default function AdvancedSearch({
};

const handleSort = (changedColumn: string, direction: string) => {
const sortColumn =
changedColumn === "workflowType" ? "workflowName" : changedColumn;
const newSort = `${sortColumn}:${direction.toUpperCase()}`;
const newSort = `${changedColumn}:${direction.toUpperCase()}`;

// Only refetch if sort actually changed
if (sort !== newSort) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -321,9 +321,7 @@ export default function BasicSearch({
);

const handleSort = (changedColumn: string, direction: string) => {
const sortColumn =
changedColumn === "workflowType" ? "workflowName" : changedColumn;
const newSort = `${sortColumn}:${direction.toUpperCase()}`;
const newSort = `${changedColumn}:${direction.toUpperCase()}`;

// Only refetch if sort actually changed
if (sort !== newSort) {
Expand Down
4 changes: 1 addition & 3 deletions ui-next/src/pages/executions/TaskSearch.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -241,9 +241,7 @@ export function TaskSearch() {
};

const handleSort = (changedColumn: string, direction: string) => {
const sortColumn =
changedColumn === "workflowType" ? "workflowName" : changedColumn;
const sort = `${sortColumn}:${direction.toUpperCase()}`;
const sort = `${changedColumn}:${direction.toUpperCase()}`;
setPage(1);
setSort(sort);
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -266,9 +266,7 @@ export default function AdvancedSearch({
};

const handleSort = (changedColumn: string, direction: string) => {
const sortColumn =
changedColumn === "workflowType" ? "workflowName" : changedColumn;
const newSort = `${sortColumn}:${direction.toUpperCase()}`;
const newSort = `${changedColumn}:${direction.toUpperCase()}`;

// Only refetch if sort actually changed
if (sort !== newSort) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -343,9 +343,7 @@ export default function BasicSearch({
);

const handleSort = (changedColumn: string, direction: string) => {
const sortColumn =
changedColumn === "workflowType" ? "workflowName" : changedColumn;
const newSort = `${sortColumn}:${direction.toUpperCase()}`;
const newSort = `${changedColumn}:${direction.toUpperCase()}`;

// Only refetch if sort actually changed
if (sort !== newSort) {
Expand Down
Loading