Initial cut - untested.
This commit is contained in:
@@ -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}, {})
|
||||
|
||||
Reference in New Issue
Block a user