Error adding timesheet to sales invoice

Using version

Installed Apps

ERPNext: v12.17.0 (version-12)
Frappe Framework: v12.14.0 (version-12)

From the Sales Invoice page after adding a new timesheet to the timesheet list then selecting an existing timesheet in the first column a javascript error occurs.
The console show this error

request.js:241 ReferenceError: data is not defined
at Object.callback (eval at setup (script_manager.js:155), :1744:12)
at Object.callback [as success_callback] (request.js:76)
at 200 (request.js:114)
at Object. (request.js:237)
at i (jquery.min.js:2)
at Object.fireWith [as resolveWith] (jquery.min.js:2)
at z (jquery.min.js:4)
at XMLHttpRequest. (jquery.min.js:4)