When the export API returns a single result (regardless of using the number parameter), the result is parsed into an object by utils.apiCall (called by utils.apiGet). This fix checks the results of the utils.apiGet and handles the result properly if it's an object.
I also opted to use Lodash's type checking functions in the places I was working in.
When the export API returns a single result (regardless of using the number parameter), the result is parsed into an object by utils.apiCall (called by utils.apiGet). This fix checks the results of the utils.apiGet and handles the result properly if it's an object.
I also opted to use Lodash's type checking functions in the places I was working in.