Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

communities-profile: fix custom funding form #1018

Merged
merged 1 commit into from
Sep 19, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import _isNumber from "lodash/isNumber";
import _isObject from "lodash/isObject";
import _map from "lodash/map";
import _mapValues from "lodash/mapValues";
import _pick from "lodash/pick";
import _pickBy from "lodash/pickBy";
import _unset from "lodash/unset";
import React, { Component } from "react";
Expand Down Expand Up @@ -218,7 +219,11 @@ class CommunityProfileForm extends Component {
}

// Record is a custom record, without explicit 'id'
const clonedValue = _cloneDeep(value);
let clonedValue = _cloneDeep(value);
// allowed keys
const allowedKeys = ["identifiers", "number", "title"];
clonedValue = _pick(clonedValue, allowedKeys);

if (value.title) {
clonedValue.title = {
en: value.title,
Expand Down
Loading