Skip to content

Commit

Permalink
Merge pull request #60 from panosc-eu/API-parameters-filter-changes
Browse files Browse the repository at this point in the history
Fixed bug on relation parameters
  • Loading branch information
nitrosx authored Jan 17, 2022
2 parents 64e2249 + 35908c2 commit ce5c766
Showing 1 changed file with 4 additions and 12 deletions.
16 changes: 4 additions & 12 deletions common/mixins/parameters.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,18 +95,10 @@ const getParametersRelations = (filter) => {
}
return [
parametersRelations.map((item) => {
/*
let simpleItem = {};
item.scope.where.and.forEach((condition) => {
simpleItem = {
...simpleItem,
...condition
}
})
return simpleItem;
*/
return item.scope.where;
}),
return (item.hasOwnProperty('scope') && item.scope.hasOwnProperty('where'))
? item.scope.where
: {}
}).filter(item => item),
newFilter];
}

Expand Down

0 comments on commit ce5c766

Please sign in to comment.