Skip to content

Commit

Permalink
navigate(-1)
Browse files Browse the repository at this point in the history
  • Loading branch information
paolini committed Nov 26, 2024
1 parent 2cfa08b commit b4bc827
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/ModelView.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export default function ModelView({ Model, buttons, key }) {
</Button>
),
index: () => (
<Button key='index' className="btn btn-secondary" onClick={() => navigate(Model.indexUrl())}>
<Button key='index' className="btn btn-secondary" onClick={() => navigate(-1)}>
torna all'elenco
</Button>
),
Expand Down

0 comments on commit b4bc827

Please sign in to comment.