Skip to content

Commit

Permalink
Merge pull request #218 from zimmerman-team/feat/DX-1693
Browse files Browse the repository at this point in the history
feat: DX-1693 - Dataset Listing Name start with Z-A, must be A-Z
  • Loading branch information
Psami-wondah authored Oct 3, 2024
2 parents f7f39e2 + f445b7c commit 58a8ed9
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,9 @@ export default function ChartsGrid(props: Props) {
props.searchStr?.length > 0
? `"where":{"name":{"like":"${props.searchStr}.*","options":"i"}},`
: "";
return `filter={${value}"order":"${
props.sortBy
} desc","limit":${limit},"offset":${fromZeroOffset ? 0 : offset}}`;
return `filter={${value}"order":"${props.sortBy} ${
props.sortBy === "name" ? "asc" : "desc"
}","limit":${limit},"offset":${fromZeroOffset ? 0 : offset}}`;
};

const getWhereString = () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,9 @@ export default function DatasetsGrid(props: Readonly<Props>) {

return `${props.userOnly ? "userOnly=true&" : ""}filter={${value}"order":"${
props.sortBy
} desc","limit":${limit},"offset":${fromZeroOffset ? 0 : offset}}`;
} ${props.sortBy === "name" ? "asc" : "desc"}","limit":${limit},"offset":${
fromZeroOffset ? 0 : offset
}}`;
};

const getWhereString = () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,9 @@ export default function ReportsGrid(props: Readonly<Props>) {
props.searchStr?.length > 0
? `"where":{"name":{"like":"${props.searchStr}.*","options":"i"}},`
: "";
return `filter={${value}"order":"${
props.sortBy
} desc","limit":${limit},"offset":${fromZeroOffset ? 0 : offset}}`;
return `filter={${value}"order":"${props.sortBy} ${
props.sortBy === "name" ? "asc" : "desc"
}","limit":${limit},"offset":${fromZeroOffset ? 0 : offset}}`;
};

const getWhereString = () => {
Expand Down

0 comments on commit 58a8ed9

Please sign in to comment.