Everything is in terms of 'points' now

pull/10616/head
Luke Morris 2018-04-03 23:03:07 -07:00
parent 2ffb118e29
commit eab7b47060
1 changed files with 4 additions and 12 deletions

View File

@ -104,18 +104,10 @@ const AutoRefresh = ComposedComponent => {
// resize event
return {
...temp,
values: temp.values.map(v => {
if (v.type === 'resolution') {
return {...v, value: `${resolution}`}
}
if (v.type === 'points') {
return {
...v,
value: `${_.toInteger(Number(resolution) / 3)}`,
}
}
return v
}),
values: temp.values.map(v => ({
...v,
value: `${_.toInteger(Number(resolution) / 3)}`,
})),
}
}