Fix chart bug
This commit is contained in:
parent
bf654c6f42
commit
59a32e9352
3 changed files with 38 additions and 1 deletions
|
|
@ -42,4 +42,17 @@ export default class TestChart extends Chart<TestLog> {
|
|||
foo: update
|
||||
});
|
||||
}
|
||||
|
||||
@autobind
|
||||
public async decrement() {
|
||||
const update: Obj = {};
|
||||
|
||||
update.total = -1;
|
||||
update.dec = 1;
|
||||
this.total--;
|
||||
|
||||
await this.inc({
|
||||
foo: update
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue