Skip to content

Commit

Permalink
uses relative route to navigate to edition
Browse files Browse the repository at this point in the history
  • Loading branch information
mfacar committed Jun 13, 2024
1 parent 4344098 commit 03b6ca3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions app/react/V2/Routes/Settings/Thesauri/ThesauriList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,14 +56,14 @@ const ThesauriList = () => {
}, [thesauri, templates]);

const navigateToEditThesaurus = (thesaurus: Row<ThesaurusSchema>) => {
navigate(`/settings/thesauri/edit/${thesaurus.original._id}`);
navigate(`./edit/${thesaurus.original._id}`);
};

const deleteSelectedThesauri = async () => {
try {
const requests = selectedThesauri.map(sThesauri => {
return ThesauriAPI.delete({ _id: sThesauri.original._id });
});
const requests = selectedThesauri.map(sThesauri =>
ThesauriAPI.delete({ _id: sThesauri.original._id })
);
await Promise.all(requests);
setNotifications({
type: 'success',
Expand Down

0 comments on commit 03b6ca3

Please sign in to comment.