@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/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}`;