Skip to content

Commit

Permalink
turn off response print on frontend
Browse files Browse the repository at this point in the history
  • Loading branch information
ozieblo-michal committed Jun 14, 2024
1 parent 0f7030f commit a0ce9bd
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions src/frontend/my-app/src/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -335,14 +335,16 @@ function App() {
/>
<button className="primary" type="submit">{updateMode ? 'Update' : 'Submit'}</button>
</form>
{response && (
<div>
<h2>Response:</h2>
<p>Name: {response.name}</p>
<p>Description: {response.description}</p>
{response.optional_field && <p>Optional Field: {response.optional_field}</p>}
</div>
)}
{response
// && (
// <div>
// <h2>Response:</h2>
// <p>Name: {response.name}</p>
// <p>Description: {response.description}</p>
// {response.optional_field && <p>Optional Field: {response.optional_field}</p>}
// </div>
// )
}
<div className="upload-buttons">
<input type="file" onChange={(e) => setSelectedFile(e.target.files[0])} />
<button className="upload-to-local" onClick={handleFileUpload}>Upload to Local</button>
Expand Down

0 comments on commit a0ce9bd

Please sign in to comment.