function parseAppRepository()

in ui/src/shared/parse-app-info.ts [16:28]


function parseAppRepository(infoArray) {
  try {
    // Find the object with the name "Application Repository"
    const appRepoEntry = infoArray.find((item) => item.name === "Application Repository");
    if (appRepoEntry && appRepoEntry.value) {
      // Return the value directly
      return appRepoEntry.value.trim() || null;
    }
  } catch (err) {
    console.error("Error parsing info array for Application Repository:", err);
  }
  return null; // Return null if parsing fails or value is not found
}