@splunk/visualization-migrations 27.2.1 → 27.3.0
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.
- package/index.js +1 -1
- package/index.js.map +2 -2
- package/migrate.js +1 -1
- package/migrate.js.map +2 -2
- package/package.json +4 -4
- package/types/utils/migrationUtils.d.ts +3 -3
package/migrate.js
CHANGED
|
@@ -500,7 +500,7 @@ var renameVizOptions = (oldOptions, optionRenames9) => {
|
|
|
500
500
|
};
|
|
501
501
|
var preserveDataSelectionForValueOption = (valueOption, selector) => {
|
|
502
502
|
if (valueOption) {
|
|
503
|
-
const dataSelectors = (0, dsl_exports.getDataSelectorsFromDSL)(valueOption);
|
|
503
|
+
const dataSelectors = typeof valueOption === "string" ? (0, dsl_exports.getDataSelectorsFromDSL)(valueOption) : [];
|
|
504
504
|
const lastDataSelector = dataSelectors[dataSelectors.length - 1];
|
|
505
505
|
if (lastDataSelector.includes("seriesByIndex") || lastDataSelector.includes("seriesByName")) {
|
|
506
506
|
return `${valueOption} | ${selector}`;
|