Merge pull request #474 from Safelite/feature/richardson/SSR-733

match FMG until we figure out what the intent was.
This commit is contained in:
brich1212safe 2023-10-09 09:21:28 -04:00 committed by GitHub
commit 098ed84658
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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;