Initial cut - untested.

This commit is contained in:
2025-09-25 09:31:02 -07:00
parent 7a0666cc6c
commit 3775522265
33 changed files with 351 additions and 346 deletions

View File

@@ -16,10 +16,10 @@ import Button from "@mui/material/Button";
const AssignmentsReport = () => {
const theme = useTheme();
const {people} = useTracker(() => {
let assets = Assets.find({assigneeId: {$exists: true}, assigneeType: "Student"}).fetch()
let assetTypes = AssetTypes.find().fetch()
let students = Students.find().fetch()
const {people} = useTracker(async () => {
let assets = await Assets.find({assigneeId: {$exists: true}, assigneeType: "Student"}).fetchAsync()
let assetTypes = await AssetTypes.find().fetchAsync()
let students = await Students.find().fetchAsync()
let people = []
let assetTypesById = assetTypes.reduce((map, obj) => {map[obj._id] = obj; return map}, {})