Skip to content

Commit

Permalink
remove unnecessary trycatch from toIncarnatonInput
Browse files Browse the repository at this point in the history
  • Loading branch information
umer4ik authored Nov 16, 2023
1 parent 309cdc0 commit c9492cc
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions ui/src/routes/incarnations/EditForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,7 @@ import { Section } from './parts'
import { Incarnation } from '../../interfaces/incarnations.types'

const toIncarnationInput = (x: Incarnation): IncarnationInput => {
let templateData = '{}'
try {
templateData = JSON.stringify(x.templateData, null, 2)
} catch (e) {
console.error(e)
}
const templateData = JSON.stringify(x.templateData, null, 2)
return {
automerge: true,
repository: x.incarnationRepository,
Expand Down

0 comments on commit c9492cc

Please sign in to comment.