Skip to content

Commit

Permalink
Fix from PR feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
lauckhart committed Nov 15, 2024
1 parent e610cd6 commit 8af9410
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/node/src/behavior/state/managed/Datasource.ts
Original file line number Diff line number Diff line change
Expand Up @@ -231,9 +231,10 @@ function configure(options: Datasource.Options): Internals {
let featuresKey: undefined | string;
if (options.supervisor.featureMap.children.length) {
featuresKey = [...options.supervisor.supportedFeatures].join(",");
if (storedValues?.[FEATURES_KEY] !== undefined && storedValues[FEATURES_KEY] !== featuresKey) {
const storedFeaturesKey = storedValues?.[FEATURES_KEY];
if (storedFeaturesKey !== undefined && storedFeaturesKey !== featuresKey) {
logger.warn(
`Ignoring persisted values for ${options.path} because features changed from "${values.featuresKey}" to "${featuresKey}"`,
`Ignoring persisted values for ${options.path} because features changed from "${storedFeaturesKey}" to "${featuresKey}"`,
);
storedValues = undefined;
}
Expand Down

0 comments on commit 8af9410

Please sign in to comment.