This commit is contained in:
Manuel Romero
2022-11-18 12:56:13 +01:00
parent 36a9fbed56
commit 46a908fb3c
3 changed files with 9 additions and 5 deletions

View File

@@ -11,5 +11,5 @@
<link rel="stylesheet" href="styles.9d61678f2572e675e100.css"></head>
<body>
<app-root></app-root>
<script src="runtime.c51bd5b1c616d9ffddc1.js" defer></script><script src="polyfills-es5.6fef7e679f78bcc42760.js" nomodule defer></script><script src="polyfills.51f5cc3d1309de3a873d.js" defer></script><script src="scripts.1af868998801499c8755.js" defer></script><script src="main.a904da9a7446bd83c797.js" defer></script></body>
<script src="runtime.c51bd5b1c616d9ffddc1.js" defer></script><script src="polyfills-es5.6fef7e679f78bcc42760.js" nomodule defer></script><script src="polyfills.51f5cc3d1309de3a873d.js" defer></script><script src="scripts.1af868998801499c8755.js" defer></script><script src="main.329057bee0a84f871c06.js" defer></script></body>
</html>

File diff suppressed because one or more lines are too long

View File

@@ -26,9 +26,13 @@ export class ModalInfoComponent implements OnInit, OnDestroy {
}
getOptionName(key){
var found = this.info._scenarioDoc.availableProductVersions.find(opt => opt.index === key);
if (found.length){
return found[0].product? found[0].product : found[0].index;
if ( this.info && this.info._scenarioDoc){
var found = this.info._scenarioDoc.availableProductVersions.find(opt => opt.index === key);
if (found.length){
return found[0].product? found[0].product : found[0].index;
} else {
return key;
}
} else {
return key;
}