const filteredParams = [...appliedFilters].reduce((prev, curr) => {
if (curr.key !== "multi")
return { ...prev, ...curr.selectedValue.params };
return;
}, {});
When I run this code, I encounter the following warning message in my console.
Line 22:13: Array.prototype.reduce() expects a return value from arrow function array-callback-return
Ignoring this warning is not an option for me, as I need to resolve it before deployment. How can I address this issue?