Skip to content

Commit

Permalink
fix(EditView.tsx): remove unnecessary console.error statement and add…
Browse files Browse the repository at this point in the history
… error notification toggle

The console.error statement is removed as it is not necessary for the catch block. Instead, an error notification toggle is added to handle any errors that occur during the try block. This improves the code by removing unnecessary logging and providing a more user-friendly way to handle errors.
  • Loading branch information
ktun95 committed Feb 16, 2024
1 parent aca616d commit 92a92f5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/ui-common/src/EditablePages/EditView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ const EditView = ({ data, userId, token }: ContentViewProperties) => {
},
})
navigate("../editable", { relative: "path" })
} catch (error) {
console.error(error)
} catch {
// Toggle some error notification
}
}
const onCancel = () => {
Expand Down

0 comments on commit 92a92f5

Please sign in to comment.