Skip to content

Commit

Permalink
Merge branch 'mainline' of github.com:cmurp25/unified-makerspace into…
Browse files Browse the repository at this point in the history
… mainline
  • Loading branch information
D42H5 committed Dec 13, 2024
2 parents ea643fa + 78f2ebe commit edec283
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion site/visitor-console/src/pages/EquipmentForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ const EquipmentForm = () => {
print_status: form_data.print_status || "In Progress",
print_notes: form_data.print_notes || "",
}),
timestamp: new Date().toISOString(),
timestamp: new Date().toISOString().split(".")[0],
};
console.log("Form Submission:", JSON.stringify(dataWithDefaults, null, 2));

Expand Down
8 changes: 6 additions & 2 deletions site/visitor-console/src/pages/EquipmentUsage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,12 @@ const EquipmentUsage = () => {
);
}

const data: EquipmentLog[] = await response.json();
setEquipmentLogs(Array.isArray(data) ? data : []);
const data = await response.json();
console.log(data);
const logs = Array.isArray(data.equipment_logs)
? data.equipment_logs
: [];
setEquipmentLogs(logs);
} catch (error) {
console.error("Error fetching equipment logs:", error);
setEquipmentLogs([]);
Expand Down
3 changes: 1 addition & 2 deletions site/visitor-console/src/pages/Registration.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -210,8 +210,7 @@ const Registration = () => {
<label htmlFor="class" className="form-label">
Class standing
</label>
<FormMultiselect
id="class"
<FormSelect
name="class"
control={control}
values={class_list}
Expand Down

0 comments on commit edec283

Please sign in to comment.