Commit 8514f5b9 authored by TJHeeringa's avatar TJHeeringa

Minor bugfixes

parent 395c1a43
......@@ -19,10 +19,13 @@ export class MembershipRequest extends Component {
const { profile, association } = this.props;
let { type, terms_of_service, privacy, ...data_fields_values} = values;
let association_data = [];
for (const [slug, value] of Object.entries(data_fields_values)) {
for (let [slug, value] of Object.entries(data_fields_values)) {
if (Array.isArray(value)) {
value = value[0]
}
association_data.push({
association: association.url,
data_field: process.env.REACT_APP_API_URL + '/association_data' + slug,
data_field: process.env.REACT_APP_API_URL + '/association_data/' + slug,
value: value
})
}
......@@ -77,7 +80,6 @@ export class MembershipRequest extends Component {
console.log(error)
) : (
<div>
{console.log(data)}
<AvField
type="select"
name="type"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment