Skip to content

Commit

Permalink
fix(apis): fix mapping / typing diff 🐛
Browse files Browse the repository at this point in the history
  • Loading branch information
PierreBrisorgueil committed May 14, 2020
1 parent 95fa595 commit dbcc06b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/apis/services/apis.service.js
Original file line number Diff line number Diff line change
Expand Up @@ -125,13 +125,13 @@ exports.load = async (api, user) => {
// Mapping
if (result.temp && api.mapping && api.mapping !== '') {
result.temp = montaineMap.map(result.temp, JSON.parse(api.mapping));
result.mapping = result.temp;
result.mapping = _.cloneDeep(result.temp);
}

// Typing
if (result.temp && api.typing && api.typing !== '') {
result.temp = montaineType.type(result.temp, JSON.parse(api.typing));
result.typing = result.temp;
result.typing = _.cloneDeep(result.temp);
}
// prepare for save
if (result.temp) {
Expand Down

0 comments on commit dbcc06b

Please sign in to comment.