@splunk/visualization-migrations 27.2.0 → 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/index.js
CHANGED
|
@@ -501,7 +501,7 @@ var renameVizOptions = (oldOptions, optionRenames9) => {
|
|
|
501
501
|
};
|
|
502
502
|
var preserveDataSelectionForValueOption = (valueOption, selector) => {
|
|
503
503
|
if (valueOption) {
|
|
504
|
-
const dataSelectors = (0, dsl_exports.getDataSelectorsFromDSL)(valueOption);
|
|
504
|
+
const dataSelectors = typeof valueOption === "string" ? (0, dsl_exports.getDataSelectorsFromDSL)(valueOption) : [];
|
|
505
505
|
const lastDataSelector = dataSelectors[dataSelectors.length - 1];
|
|
506
506
|
if (lastDataSelector.includes("seriesByIndex") || lastDataSelector.includes("seriesByName")) {
|
|
507
507
|
return `${valueOption} | ${selector}`;
|