Skip to content

Commit

Permalink
remove selected in the YAML
Browse files Browse the repository at this point in the history
  • Loading branch information
PookMook committed Jul 11, 2017
1 parent 6eb92cb commit 0d6cda3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion yamlEditor/dist/js/bundle.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion yamlEditor/src/js/redux/reducer.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ function compileKeywords(state){
let categories = state.misc.categories.filter(function(category){
return category.selected === true;
});
state.obj.controlledKeywords = categories;
state.obj.controlledKeywords = categories.map((o)=>(Object.assign({},o))).map(function(o){delete o.selected;return o});

//Compute uncontrolledKeywords
state.obj.keyword_fr = [];
Expand Down

0 comments on commit 0d6cda3

Please sign in to comment.