problem with objectId with bson and such in models but fixed it and nice rendering everything now

This commit is contained in:
talksik
2022-03-19 22:28:05 -04:00
parent b656e9d3a9
commit 10520b3487
10 changed files with 147 additions and 29 deletions
@@ -28,7 +28,7 @@ export default function Search() {
refetch();
}, [searchQuery]);
if (!data?.data?.users) {
if (!data?.users) {
return (
<span className="text-white">
no results. please try someone's email or name.
@@ -95,7 +95,7 @@ export default function Search() {
Go back
</button>
{data?.data?.users?.map((user) => {
{data?.users?.map((user) => {
return renderUserRow(user);
})}
</div>