Skip to content

Commit

Permalink
Fix internal error alert
Browse files Browse the repository at this point in the history
  • Loading branch information
MiraGeowerkstatt committed Nov 21, 2024
1 parent b7a10ae commit 63dfd2b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/client/src/pages/detail/detailHeader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ const DetailHeader = ({
data-cy="backButton"
onClick={() => {
{
isFormDirty ? stopEditingWithUnsavedChanges() : stopEditing();
editingEnabled && (isFormDirty ? stopEditingWithUnsavedChanges() : stopEditing());
history.push("/");
}
}}
Expand Down

0 comments on commit 63dfd2b

Please sign in to comment.