My collection queries are no longer working?

Hi Corvid team,

My Collection queries are no longer working. I keep receiving the following error:

“Unhandled promise rejection TypeError: Unable to get property ‘1’ of undefined or null reference”

I tried this on two different Collection queries and on a few version of my sites that haven’t changed and they all fail. Have the new Content Manager changes affected the queries? Any help on how I can get out of this problem?

Thank you,
G

https://gmitche
ll2014.wixsite.com/website-1

Sample code:

stateIncomeDuringRetirement = 30000;
getMarginalStateTaxRate(stateIncomeDuringRetirement)
.then((stateResult2) => {
if (stateResult2 === ‘NORESULTS getMarginalStateTaxRate’) {
console.log(“error in getMarginalStateTaxRate(stateIncomeDuringRetirement)”);
} else {
marginalStateIncomeTaxRateDuringRetirement = stateResult2;
}

export function getMarginalStateTaxRate(applicableIncome) {
if (taxFilingStatus === “0”) {
return wixData.query(‘Taxes_State_DB’)
.eq(‘state’, cityStateArray[1])
.descending(‘singleFilerBrackets’)
.le(‘singleFilerBrackets’, applicableIncome)
.limit(1)
.find()
.then((results) => {
if (results.totalCount > 0) {
return results.items[0].singleFilerRates;
}
return ‘NORESULTS getMarginalStateTaxRate’;
})
}
return wixData.query(‘Taxes_State_DB’)
.eq(‘state’, cityStateArray[1])
.descending(‘marriedFilingJointlyBrackets’)
.le(‘marriedFilingJointlyBrackets’, applicableIncome)
.limit(1)
.find()
.then((results) => {
if (results.totalCount > 0) {
return results.items[0].marriedFilingJointlyRates;
}
return ‘NORESULTS getMarginalStateTaxRate’;
})
}

I figured it out- my Google Cloud API key was no longer working. Apologies.