Replaced empty object with newProps var