Merge pull request #2753 from urbanrotnik/ur-sci-4890-inventory-empty-text-value

Fix undefined text cell [SCI-4890]
This commit is contained in:
Urban Rotnik 2020-07-23 12:56:43 +02:00 committed by GitHub
commit 077f5eefdb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -27,8 +27,7 @@ $.fn.dataTable.render.editRepositoryAssetValue = function(formId, columnId, cell
$.fn.dataTable.render.editRepositoryTextValue = function(formId, columnId, cell) {
let $cell = $(cell.node());
let text = $cell.find('.text-value').data('edit-value');
let text = $cell.find('.text-value').data('edit-value') || '';
$cell.html(`
<div class="sci-input-container text-field error-icon">
<input class="sci-input-field"