simplify
This commit is contained in:
parent
0b1bc74c3b
commit
95b1548e5f
1 changed files with 1 additions and 1 deletions
|
|
@ -117,7 +117,7 @@ function normalize(value = 0, min = 0, max = 1, exp = 1) {
|
|||
return Math.pow(normalized, exp);
|
||||
}
|
||||
function mapCC(mapping, value) {
|
||||
const ccs = Array.isArray(value.cc) ? value.cc : [];
|
||||
const ccs = [];
|
||||
const matches = Object.entries(value).filter(([key]) => !!mapping[getControlName(key)]);
|
||||
matches.forEach((match) => {
|
||||
const control = match[0];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue