From 51ca82839973caf438f6472414348e12b55a9c73 Mon Sep 17 00:00:00 2001 From: Urban Rotnik Date: Wed, 22 Jul 2020 17:27:36 +0200 Subject: [PATCH] Fix undefined text cell --- .../javascripts/repositories/renderers/edit_renderers.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/assets/javascripts/repositories/renderers/edit_renderers.js b/app/assets/javascripts/repositories/renderers/edit_renderers.js index 067499ff5..09692d640 100644 --- a/app/assets/javascripts/repositories/renderers/edit_renderers.js +++ b/app/assets/javascripts/repositories/renderers/edit_renderers.js @@ -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(`