Question
What is tweenjs_count and why is it affecting my props?
Please see my code excerpt below. For some reason when I run my project it seems to add a prop 'tweenjs_count' and it's throwing off the function below. Any insight would be massively appreciated.
mode_ratios: {
normal: 1,
unbalance: 0,
misalignment: 0,
looseness: 0,
bearing: 0,
resonance: 0,
}
function calc_peak_height(peak_name){
let height;
height = 0;
for(let mode in props.mode_ratios){
if(Boolean(props.peak_scaleY[mode][peak_name])){
height += props.peak_scaleY[mode][peak_name] * props.mode_ratios[mode]
};
}
return height;
};
The error message I receive seems to allude to the fact that there are no corresponding 'peak_names' for the prop 'tweenjs_count'.
See screengrab below:
