From e004dc38cabbbd5c3dc57ce27c991f69765b91ef Mon Sep 17 00:00:00 2001 From: Bill Richardson Date: Fri, 6 Oct 2023 16:38:19 -0400 Subject: [PATCH] match FMG until we figure out what the intent was. --- src/helpers/cms-content-helper.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/helpers/cms-content-helper.js b/src/helpers/cms-content-helper.js index 7d03c8fa..b3130ac7 100644 --- a/src/helpers/cms-content-helper.js +++ b/src/helpers/cms-content-helper.js @@ -271,7 +271,9 @@ function getStoreValueFromString(str) { // eslint-disable-next-line no-restricted-syntax for (const s of str.split('.')) { if (s === 'getters') continue; // For backward compatibility - if (typeof storeOrStateObject[s] !== 'undefined') { + // TODO: I don't think this next line is doing what they think it's doing. + // eslint-disable-next-line eqeqeq, valid-typeof + if (typeof storeOrStateObject[s] != undefined) { storeOrStateObject = storeOrStateObject[s]; } else { break;