From 6b2d81e0bee8da49a1ba4df9d14d3b1bcf266d07 Mon Sep 17 00:00:00 2001 From: David-YuWei Date: Tue, 12 Dec 2017 16:15:41 -0500 Subject: [PATCH] Change the text of the first column to "GDC Term" if no ICD-O code matched to the property --- client/dist/bundle.js | 19 ++++++++++++++++--- client/src/dialog/index.js | 1 + client/src/dialog/view.js | 18 +++++++++++++++--- 3 files changed, 32 insertions(+), 6 deletions(-) diff --git a/client/dist/bundle.js b/client/dist/bundle.js index 422d6fdb..9876b493 100644 --- a/client/dist/bundle.js +++ b/client/dist/bundle.js @@ -1700,6 +1700,7 @@ const func = { }); } items.forEach(function(it){ + if(it.s == undefined) return; let cache = {}; let tmp_s = []; it.s.forEach(function(s){ @@ -2130,8 +2131,12 @@ let tmpl = { +'
' +'
' +'
' - +'{{if icdo}}
ICD-O-3 Code
{{/if}}' + +'{{if icdo}}' + +'
ICD-O-3 Code
' +'
ICD-O-3 Term
' + +'{{else}}' + +'
GDC Term
' + +'{{/if}}' +'
NCIt Code
' +'
NCIt Terms
' +'
' @@ -2140,8 +2145,12 @@ let tmpl = { +'{{for items}}' +'{{if e == true || ~root.targets == null}}' +'
' - +'{{if ~root.icdo}}
{{:i_c.c}}
{{/if}}' + +'{{if ~root.icdo}}' + +'
{{:i_c.c}}
' +'
{{:n}}
' + +'{{else}}' + +'
{{:n}}
' + +'{{/if}}' +'
' +'{{if n_c && n_c !== ""}}' +'{{* if((/^C[1-9]/g).test(data.n_c)) { }}{{:n_c}} (NCIt)' @@ -2155,8 +2164,12 @@ let tmpl = { +'
' +'{{else}}' +'