Skip to content

Commit

Permalink
fix: links will be defined in the documents property
Browse files Browse the repository at this point in the history
  • Loading branch information
EmmanuelDemey committed May 20, 2019
1 parent 9f07b47 commit dd7e7be
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -76,10 +76,6 @@ class Field extends PureComponent {
handleAddDocument = document =>
this._handleAddDocumentOrLinks('documents')(document);

handleDeleteLink = uri => this._handleDeleteDocumentOrLinks('links')(uri);

handleAddLink = link => this._handleAddDocumentOrLinks('links')(link);

render() {
const {
msd,
Expand Down Expand Up @@ -156,11 +152,11 @@ class Field extends PureComponent {
objectType="documents"
/>
<DocumentsBloc
documents={currentSection.links}
documents={currentSection.documents}
localPrefix={secondLang ? 'Lg2' : 'Lg1'}
editMode={true}
deleteHandler={this.handleDeleteLink}
addHandler={this.handleAddLink}
deleteHandler={this.handleDeleteDocument}
addHandler={this.handleAddDocument}
objectType="links"
/>
</>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export default function SimsVisualisation({
objectType="documents"
/>
<DocumentsBloc
documents={currentSection.links}
documents={currentSection.documents}
localPrefix={isSecondLang ? 'Lg2' : 'Lg1'}
objectType="links"
/>
Expand Down

0 comments on commit dd7e7be

Please sign in to comment.