match FMG until we figure out what the intent was.

This commit is contained in:
Bill Richardson 2023-10-06 16:38:19 -04:00
parent 9925fb5b35
commit e004dc38ca

View file

@ -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;