From 65bf863093a3ba5d9bcf4509b81188e03a1b43b9 Mon Sep 17 00:00:00 2001 From: syuilo Date: Fri, 5 Jul 2019 22:32:15 +0900 Subject: [PATCH] Fix #4760 --- src/services/chart/core.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/services/chart/core.ts b/src/services/chart/core.ts index d5fd9a5c5..a3bd80d16 100644 --- a/src/services/chart/core.ts +++ b/src/services/chart/core.ts @@ -446,7 +446,9 @@ export default abstract class Chart> { if (typeof v == 'object') { dive(v, p); } else { - nestedProperty.set(res, p, chart.map(s => nestedProperty.get(s, p))); + const values = chart.map(s => nestedProperty.get(s, p)) + .map(v => parseInt(v, 10)); // TypeORMのバグ(?)で何故か数値カラムの値が文字列型になっているので数値に戻す + nestedProperty.set(res, p, values); } } };