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

@@ -84,7 +84,7 @@ export default () => {
const [assignmentData, setAssignmentData] = useState([])
const [search, setSearch] = useSearchParams()
useEffect(() => {
useEffect(async () => {
let args;
if(search.get('studentId')) {
@@ -106,7 +106,7 @@ export default () => {
args = {assetId: search.get('assetId')}
}
Meteor.call('DataCollection.chromebookData', args, (err, result) => {
await Meteor.callAsync('DataCollection.chromebookData', args, (err, result) => {
if (err) console.error(err)
else setUsageData(result)
})
@@ -124,7 +124,7 @@ export default () => {
// args = {assetId: search.get('assetId')}
// }
Meteor.call('AssetAssignmentHistory.get', args, (err, result) => {
await Meteor.callAsync('AssetAssignmentHistory.get', args, (err, result) => {
if (err) console.error(err)
else setAssignmentData(result)
})