diff --git a/koha-tmpl/intranet-tmpl/prog/js/checkouts.js b/koha-tmpl/intranet-tmpl/prog/js/checkouts.js
index 471ec6bc68..965aec6cf0 100644
--- a/koha-tmpl/intranet-tmpl/prog/js/checkouts.js
+++ b/koha-tmpl/intranet-tmpl/prog/js/checkouts.js
@@ -1010,8 +1010,13 @@ $(document).ready(function() {
{
"sClass": "return-claim-notes-td",
"mDataProp": function ( oObj ) {
- return '' + oObj.notes + ''
- + '';
+ let notes = '';
+ if ( oObj.notes ) {
+ notes += oObj.notes;
+ }
+ notes += '';
+ notes += '';
+ return notes;
}
},
{