From 30c53e9ee078e156f433d18058cc099a63d51642 Mon Sep 17 00:00:00 2001 From: syuilo Date: Tue, 11 Dec 2018 20:33:52 +0900 Subject: [PATCH] Fix error --- src/chart/index.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/chart/index.ts b/src/chart/index.ts index 913d49bec..fa9f4c2eb 100644 --- a/src/chart/index.ts +++ b/src/chart/index.ts @@ -64,9 +64,8 @@ export default abstract class Chart { const keys = { span: -1, date: -1 - }; - if (grouped) - keys.group = -1; + } as any; + if (grouped) keys.group = -1; this.collection.createIndex(keys, { unique: true }); }