fix: faulty logic

This commit is contained in:
Jesse Mazzella 2024-08-23 10:13:22 -07:00 committed by Jesse Mazzella
parent 0d075b0a86
commit 0c6146f028

View File

@ -176,10 +176,13 @@ function getImageSamples(configuration) {
/**
* @param {ImageryConfiguration} configuration
* @returns {string[] | undefined}
* @returns {string[]?}
*/
function getImageLocations(configuration) {
const imageLocations = configuration?.imageLocation?.split(',');
let imageLocations = null;
if (configuration.imageLocation) {
imageLocations = configuration.imageLocation.split(',');
}
return imageLocations;
}