sea-chart 1.1.86 → 1.1.87-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -669,6 +669,7 @@ BaseUtils.formatPieChartData = (data, chart, tables, currentTheme, useColumnColo
|
|
|
669
669
|
// format SINGLE_SELECT, LAST_MODIFIER, CREATOR, COLLABORATOR, DATE, NUMBER
|
|
670
670
|
BaseUtils.updateTableViewListItemNameAndColor = async (result, column, nameKey, colorKey, isScatterChart, isNameField) => {
|
|
671
671
|
return new Promise((resolve, reject) => {
|
|
672
|
+
let resultPromise = Promise.resolve();
|
|
672
673
|
let {
|
|
673
674
|
type: columnType,
|
|
674
675
|
data: columnData
|
|
@@ -759,9 +760,10 @@ BaseUtils.updateTableViewListItemNameAndColor = async (result, column, nameKey,
|
|
|
759
760
|
type: array_type,
|
|
760
761
|
data: array_data
|
|
761
762
|
};
|
|
762
|
-
|
|
763
|
+
// for linked formula, need to call recursively, using it's result as the result of the promise
|
|
764
|
+
resultPromise = _BaseUtils.updateTableViewListItemNameAndColor(result, linkedColumn, nameKey, colorKey, isScatterChart);
|
|
763
765
|
}
|
|
764
|
-
resolve();
|
|
766
|
+
resolve(resultPromise);
|
|
765
767
|
});
|
|
766
768
|
};
|
|
767
769
|
BaseUtils.updateTableViewList = async (result, column, nameKey, colorKey, isScatterChart, isNameField) => {
|