Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/InseeFr/Bauhaus
Browse files Browse the repository at this point in the history
  • Loading branch information
alicela committed May 14, 2019
2 parents 11faaaf + 4a944fe commit 258fd49
Showing 1 changed file with 1 addition and 33 deletions.
34 changes: 1 addition & 33 deletions src/js/actions/operations/sims/item.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,43 +104,11 @@ export default id => (dispatch, getState) => {
...results,
parentsWithoutSims,
rubrics: results.rubrics.reduce((acc, rubric) => {
// TO BE DELETED
const documents = [
{
uri: 'uri1-bis',
url: 'http://google.fr?q=url-1',
lastRefresh: '01/01/2019',
lang: 'fr',
labelLg1: 'Document 1 - label en Langue 1',
labelLg2: 'Document 1 - label en Langue 2',
descriptionLg1: 'Description 1 en Langue 1',
descriptionLg2: 'Description 1 en Langue 2',
},
{
uri: 'uri2-bis',
url: 'http://google.fr?q=url-2',
lastRefresh: '01/02/2019',
labelLg1: 'Document 2 - label en Langue 1',
labelLg2: 'Document 2 - label en Langue 2',
descriptionLg1: 'Description 2 en Langue 1',
descriptionLg2: 'Description 2 en Langue 2',
},
{
uri: 'uri3-bis',
url: 'http://google.fr?q=url-2',
labelLg1: 'Document 3 - label en Langue 1',
labelLg2: 'Document 3 - label en Langue 2',
descriptionLg1: 'Description 3 en Langue 1',
descriptionLg2: 'Description 3 en Langue 2',
lang: 'fr',
},
];
return {
...acc,
[rubric.idAttribute]: {
...rubric,
idMas: rubric.idAttribute,
documents: rubric.idAttribute === 'S.3.1' ? documents : [],
idMas: rubric.idAttribute
},
};
}, {}),
Expand Down

0 comments on commit 258fd49

Please sign in to comment.