diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/chart/index.ts | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/chart/index.ts b/src/chart/index.ts index 913d49bec8..fa9f4c2eb9 100644 --- a/src/chart/index.ts +++ b/src/chart/index.ts @@ -64,9 +64,8 @@ export default abstract class Chart<T> { const keys = { span: -1, date: -1 - }; - if (grouped) - keys.group = -1; + } as any; + if (grouped) keys.group = -1; this.collection.createIndex(keys, { unique: true }); } |