|
@@ -29,6 +29,9 @@ func GetChartThemeConfig(chartThemeId, source, chartType int) (chartTheme *chart
|
|
|
newConfig, e := ConvertOldChartOptions(chartTheme.Config)
|
|
|
if e == nil {
|
|
|
chartTheme.Config = newConfig
|
|
|
+ } else {
|
|
|
+ err = e
|
|
|
+ return
|
|
|
}
|
|
|
return
|
|
|
}
|
|
@@ -55,6 +58,9 @@ func GetChartThemeConfig(chartThemeId, source, chartType int) (chartTheme *chart
|
|
|
newConfig, e := ConvertOldChartOptions(chartTheme.Config)
|
|
|
if e == nil {
|
|
|
chartTheme.Config = newConfig
|
|
|
+ } else {
|
|
|
+ err = e
|
|
|
+ return
|
|
|
}
|
|
|
return
|
|
|
}
|
|
@@ -66,6 +72,9 @@ func GetChartThemeConfig(chartThemeId, source, chartType int) (chartTheme *chart
|
|
|
newConfig, e := ConvertOldChartOptions(chartTheme.Config)
|
|
|
if e == nil {
|
|
|
chartTheme.Config = newConfig
|
|
|
+ } else {
|
|
|
+ err = e
|
|
|
+ return
|
|
|
}
|
|
|
return
|
|
|
}
|