mirror of
https://github.com/nasa/openmct.git
synced 2024-12-18 20:57:53 +00:00
fix: faulty logic
This commit is contained in:
parent
0d075b0a86
commit
0c6146f028
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user