diff --git a/react/src/components/AtomForm/Field.js b/react/src/components/AtomForm/Field.js index 0b2b40c988..fb316abdba 100644 --- a/react/src/components/AtomForm/Field.js +++ b/react/src/components/AtomForm/Field.js @@ -35,6 +35,7 @@ class Field extends React.PureComponent { const { atom, field, index, onChange, onValueChange, startSplittingAtom } = this.props const { meta } = atom.record const isCheck = meta.structure[field] && meta.structure[field].type === 'boolean' + const atomKey = atom.record.id || atom.record.lodashId return (
{isCheck && ( {Object.keys(atom.record.meta.structure).map((field) => ( { const asMolecule = molecule && !atom.record.meta.molecule_singleton if (asMolecule) { nonSingletonIndex++ } + const atomKey = atom.record.id || atom.record.lodashId const fillOutput = (input) => { let zIndex = 100 @@ -306,7 +307,7 @@ class AtomForm extends React.PureComponent { return ( { this.setState({ focusedIndex: null }) }} @@ -319,7 +320,7 @@ class AtomForm extends React.PureComponent { } else if (input === 'STRUCTURE') { return ( this.props.onChange(html) }, scrollTarget: this.props.scrollTarget })