DmitrMakeev commited on
Commit
e68eff4
·
verified ·
1 Parent(s): 4ff0571

Update data_gc_tab.html

Browse files
Files changed (1) hide show
  1. data_gc_tab.html +9 -0
data_gc_tab.html CHANGED
@@ -98,6 +98,15 @@
98
  fetch('https://dmtuit-gc-api-ras.hf.space/data_gc_tab_out?api_sys=fasSd345D')
99
  .then(response => response.json())
100
  .then(data => {
 
 
 
 
 
 
 
 
 
101
  var table = new Tabulator("#example-table", {
102
  data: data, // set table data
103
  layout: "fitColumns", // fit columns to width of table
 
98
  fetch('https://dmtuit-gc-api-ras.hf.space/data_gc_tab_out?api_sys=fasSd345D')
99
  .then(response => response.json())
100
  .then(data => {
101
+ console.log('Data received:', data); // Логирование данных
102
+
103
+ // Обработка отсутствующих полей
104
+ data.forEach(item => {
105
+ if (!item.curator) {
106
+ item.curator = 'Unknown'; // Установка значения по умолчанию
107
+ }
108
+ });
109
+
110
  var table = new Tabulator("#example-table", {
111
  data: data, // set table data
112
  layout: "fitColumns", // fit columns to width of table