Same data appears
#2393
-
Hours passed and I am still stuck. I just can't get the sorted data based on the sorting parameters I created and passed through the body. But, everytime I change the sorting, same data appears. It was working with server actions but I am just trying Hono. I am definitely wrong with what I am doing here so I seeking for a help. client component:
hono api route:
|
Beta Was this translation helpful? Give feedback.
Answered by
dondycles
Mar 20, 2024
Replies: 1 comment
-
Nevermind, I just fixed it by changing this: |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
dondycles
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Nevermind, I just fixed it by changing this:
const asc: boolean = json.asc;
to this:
const asc: boolean = Boolean(json.asc === "true");