simplify gist methods. set gist now sets the gist
This commit is contained in:
parent
94d59d44a2
commit
210c463a38
4 changed files with 9 additions and 19 deletions
|
@ -9,6 +9,7 @@ const CoreSettingSaBool = props => {
|
|||
|
||||
const toggle = () => {
|
||||
props.setGist({
|
||||
...props.gist,
|
||||
saBool: !value,
|
||||
sa: value ? 0 : props.gist.saMm
|
||||
})
|
||||
|
|
|
@ -15,6 +15,7 @@ const CoreSettingMm = props => {
|
|||
|
||||
setValue(newVal)
|
||||
if (props.gist.sa) props.setGist({
|
||||
...props.gist,
|
||||
saMm: newVal,
|
||||
sa: newVal,
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue