68948: Item null check

This commit is contained in:
Kristof De Langhe
2020-03-20 17:49:07 +01:00
parent 441d8a07b5
commit 10cd6182ae

View File

@@ -107,6 +107,8 @@ export class ItemVersionsNoticeComponent implements OnInit {
* @param item The item for which the url is requested * @param item The item for which the url is requested
*/ */
getItemPage(item: Item): string { getItemPage(item: Item): string {
if (hasValue(item)) {
return getItemPageRoute(item.id); return getItemPageRoute(item.id);
} }
} }
}