Skip to content

Commit

Permalink
turn on 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 a0ce9bd commit 05a536b
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/frontend/my-app/src/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -336,14 +336,14 @@ 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>
// )
&& (
<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])} />
Expand Down

0 comments on commit 05a536b

Please sign in to comment.