diff options
| author | syuilo <Syuilotan@yahoo.co.jp> | 2019-10-31 15:51:33 +0900 |
|---|---|---|
| committer | syuilo <Syuilotan@yahoo.co.jp> | 2019-10-31 15:51:33 +0900 |
| commit | 59a32e9352681ba2bea67c96ba4eea7f36cf6b60 (patch) | |
| tree | c10289575c5033592c37c9f4f9cb9fc5f42049f1 /src/services/chart/charts | |
| parent | Componentize modal (#5386) (diff) | |
| download | sharkey-59a32e9352681ba2bea67c96ba4eea7f36cf6b60.tar.gz sharkey-59a32e9352681ba2bea67c96ba4eea7f36cf6b60.tar.bz2 sharkey-59a32e9352681ba2bea67c96ba4eea7f36cf6b60.zip | |
Fix chart bug
Diffstat (limited to 'src/services/chart/charts')
| -rw-r--r-- | src/services/chart/charts/classes/test.ts | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/services/chart/charts/classes/test.ts b/src/services/chart/charts/classes/test.ts index 0ca63d174c..ea64040f3e 100644 --- a/src/services/chart/charts/classes/test.ts +++ b/src/services/chart/charts/classes/test.ts @@ -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 + }); + } } |