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

list is not showing #3

Open
Joelthobias opened this issue Sep 22, 2020 · 7 comments
Open

list is not showing #3

Joelthobias opened this issue Sep 22, 2020 · 7 comments

Comments

@Joelthobias
Copy link

you can see the erreor using the given link

https://drive.google.com/file/d/1PIZ7SOKyVm0IQEZGuRA4038ntpciMHSh/view?usp=sharing

@kottaisamy1998
Copy link

https://drive.google.com/file/d/1PIZ7SOKyVm0IQEZGuRA4038ntpciMHSh/view?usp=sharing

I also have the same problem. For any solution for that problem

@kottaisamy1998
Copy link

In list data not showing but only showing the edit and delete only

@ahsanihsan
Copy link

Resolved this issue in #7 pull request

@Savalone47
Copy link

Look good

@innocent-maina
Copy link

To fix the list not showing, add .lean() to your code as below

router.get('/list', (req, res) => {
Employee.find((err, docs) => {
if (!err) {
res.render("employee/list", {
list: docs,
});
}
else {
console.log('Error in retrieving employee list :' + err);
}
})
.lean() // It is prevent the warning when trying to display records
})

@sakshi-seth
Copy link

Showing lean is not defined...how to fix this?

@Ullas1804
Copy link

Please help me with the error, its not showing any data which i have entered. Its getting saved in the database but not in the list. i ll share my code please help me.
project.zip

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

7 participants