philipk22 commited on
Commit
13cc174
·
1 Parent(s): 9871eb4

missing query

Browse files
Files changed (1) hide show
  1. frontend/dist/js/app.js +5 -1
frontend/dist/js/app.js CHANGED
@@ -38,6 +38,9 @@ async function uploadFile() {
38
  const data = await response.json();
39
  sessionId = data.session_id;
40
 
 
 
 
41
  } catch (error) {
42
  console.error('Error uploading file:', error);
43
  } finally {
@@ -108,7 +111,8 @@ document.addEventListener('DOMContentLoaded', function() {
108
  spinner.style.display = 'none';
109
  });
110
 
111
- // Show response section but hide context section
 
112
  document.querySelector('.response-section').style.display = 'block';
113
  document.getElementById('contextSection').style.display = 'none';
114
 
 
38
  const data = await response.json();
39
  sessionId = data.session_id;
40
 
41
+ // Show the query section after successful upload
42
+ document.querySelector('.query-section').style.display = 'block';
43
+
44
  } catch (error) {
45
  console.error('Error uploading file:', error);
46
  } finally {
 
111
  spinner.style.display = 'none';
112
  });
113
 
114
+ // Show all sections by default
115
+ document.querySelector('.query-section').style.display = 'block';
116
  document.querySelector('.response-section').style.display = 'block';
117
  document.getElementById('contextSection').style.display = 'none';
118