in ui/src/shared/parse-app-info.ts [1:13]
function parseImageRepository(infoArray) {
try {
// Find the object with the name "Image Repository"
const imageRepoEntry = infoArray.find((item) => item.name === "Image Repository");
if (imageRepoEntry && imageRepoEntry.value) {
// Extract the part before the colon
return imageRepoEntry.value.split(":")[0] || null;
}
} catch (err) {
console.error("Error parsing info array for Image Repository:", err);
}
return null; // Return null if parsing fails or value is not found
}