diff options
Diffstat (limited to 'kvision-modules/kvision-chart/src/main/kotlin/pl/treksoft/kvision/chart')
-rw-r--r-- | kvision-modules/kvision-chart/src/main/kotlin/pl/treksoft/kvision/chart/Configuration.kt | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/kvision-modules/kvision-chart/src/main/kotlin/pl/treksoft/kvision/chart/Configuration.kt b/kvision-modules/kvision-chart/src/main/kotlin/pl/treksoft/kvision/chart/Configuration.kt index 7b1cddd6..0925a0c8 100644 --- a/kvision-modules/kvision-chart/src/main/kotlin/pl/treksoft/kvision/chart/Configuration.kt +++ b/kvision-modules/kvision-chart/src/main/kotlin/pl/treksoft/kvision/chart/Configuration.kt @@ -911,9 +911,9 @@ fun Configuration.toJs(i18nTranslator: (String) -> (String)): Chart.ChartConfigu } private fun Array<dynamic>.checkSingleValue(): dynamic { - if (this.size == 1) { - return this[0] + return if (this.size == 1) { + this[0] } else { - return this + this } } |