Redmind commited on
Commit
aa6098f
·
verified ·
1 Parent(s): 82fa7cb

Update templates/prompt_template.html

Browse files
Files changed (1) hide show
  1. templates/prompt_template.html +2 -2
templates/prompt_template.html CHANGED
@@ -525,7 +525,7 @@ async function fetchUpdatedDocuments(company_id) {
525
  contentSection.style.display = 'block';
526
  }
527
  }
528
- function save_file() {
529
  const form = document.getElementById('addPromptForm');
530
 
531
  // Check if the form is valid
@@ -559,7 +559,7 @@ async function fetchUpdatedDocuments(company_id) {
559
  if (!response.ok) {
560
  throw new Error('Network response was not ok');
561
  }
562
- return response.text();
563
  })
564
  .then(data => {
565
  const row_id = data.row_id;
 
525
  contentSection.style.display = 'block';
526
  }
527
  }
528
+ function save_file() {
529
  const form = document.getElementById('addPromptForm');
530
 
531
  // Check if the form is valid
 
559
  if (!response.ok) {
560
  throw new Error('Network response was not ok');
561
  }
562
+ return response.json();
563
  })
564
  .then(data => {
565
  const row_id = data.row_id;