syntax fix

This commit is contained in:
makearmy 2025-10-02 20:11:03 -04:00
parent 2a105e3892
commit 72a908134b

View file

@ -50,16 +50,15 @@ export default function CO2GalvoSettingsPage() {
}
}
// Initial load of settings (using user token via /api/dx proxy)
useEffect(() => {
setLoading(true);
// ✅ include parent field `owner` AND subfields; use auth proxy
const fields = [
"submission_id",
"setting_title",
"uploader",
"owner", // may be id or object depending on role
"owner.id", // ask, but we won't depend on expansion
"owner.username", // ask, but we won't depend on expansion
"owner", // ← add comma here
"owner.id",
"owner.username",
"photo.id",
"photo.title",
"mat.name",