Skip to content

Commit

Permalink
Properly revert url changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Bestem0r committed Feb 6, 2025
1 parent d3422f4 commit dcc0414
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/routes/bdb/components/BdbDetail.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -452,7 +452,7 @@ const BdbDetail = () => {
}
title={title}
back={{
href: '/bdb/bdb-pro',
href: '/bdb',
}}
actionButtons={
<LinkButton key="edit" href={`/bdb/${companyId}/edit`}>
Expand Down
2 changes: 1 addition & 1 deletion app/routes/bdb/components/CompanyEditor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ const CompanyEditor = () => {
message="Er du sikker på at du vil slette denne bedriften?"
onConfirm={() =>
dispatch(deleteCompany(companyId)).then(() => {
navigate('/bdb/bdb-pro');
navigate('/bdb');
})
}
>
Expand Down
2 changes: 1 addition & 1 deletion app/routes/company/components/CompaniesPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ const CompaniesPage = () => {
})}
actionButtons={
(actionGrant.includes('create') || actionGrant.includes('edit')) && (
<LinkButton href="/bdb/bdb-pro">Bedriftsdatabasen</LinkButton>
<LinkButton href="/bdb">Bedriftsdatabasen</LinkButton>
)
}
>
Expand Down

0 comments on commit dcc0414

Please sign in to comment.