diff --git a/src/plugins/plot/src/configuration/PlotSeries.js b/src/plugins/plot/src/configuration/PlotSeries.js index d1dcd385c1..da6ad15948 100644 --- a/src/plugins/plot/src/configuration/PlotSeries.js +++ b/src/plugins/plot/src/configuration/PlotSeries.js @@ -83,6 +83,7 @@ define([ this.listenTo(this, 'change:xKey', this.onXKeyChange, this); this.listenTo(this, 'change:yKey', this.onYKeyChange, this); + this.persistedConfig = options.persistedConfig; Model.apply(this, arguments); this.onXKeyChange(this.get('xKey')); @@ -176,8 +177,7 @@ define([ return; } var valueMetadata = this.metadata.value(newKey); - var persistedConfig = this.get('persistedConfiguration'); - if (!persistedConfig || !persistedConfig.interpolate) { + if (!this.persistedConfig || !this.persistedConfig.interpolate) { if (valueMetadata.format === 'enum') { this.set('interpolate', 'stepAfter'); } else { diff --git a/src/plugins/plot/src/configuration/SeriesCollection.js b/src/plugins/plot/src/configuration/SeriesCollection.js index e332871219..900855728a 100644 --- a/src/plugins/plot/src/configuration/SeriesCollection.js +++ b/src/plugins/plot/src/configuration/SeriesCollection.js @@ -54,7 +54,7 @@ define([ domainObject.configuration.series.forEach(function (seriesConfig) { var series = this.byIdentifier(seriesConfig.identifier); if (series) { - series.set('persistedConfiguration', seriesConfig); + series.persistedConfig = seriesConfig; } }, this); }, @@ -90,7 +90,9 @@ define([ model: seriesConfig, domainObject: domainObject, collection: this, - openmct: this.openmct + openmct: this.openmct, + persistedConfig: this.plot + .getPersistedSeriesConfig(domainObject.identifier) })); }, removeTelemetryObject: function (identifier) {