Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Transaction Page #16

Open
Siddh744542 opened this issue Jul 21, 2023 · 1 comment
Open

Transaction Page #16

Siddh744542 opened this issue Jul 21, 2023 · 1 comment

Comments

@Siddh744542
Copy link

In the Data-grid pages are not changing #15 i tried changing the version didn't work

@Joe95-ux
Copy link

Joe95-ux commented Jan 5, 2024

For anyone who comes across this in the future, the problem lies in the getTransactions function in the client controller. The total transactions returned is zero (0) which affects rowCount prop on the Data grid component on the frontend.
use this:
const total = await Transaction.countDocuments();

instead of this:
const total = await Transaction.countDocuments({ name: { $regex: search, $options: "i" }, });

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants