Skip to content

Commit

Permalink
chore(#51): fix unnecessary try/catch
Browse files Browse the repository at this point in the history
  • Loading branch information
Decipher committed Sep 8, 2023
1 parent ab9f410 commit fe4eeb5
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions src/components/DruxtFieldLayoutParagraphs.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,10 @@
:uuid="paragraph.id"
v-bind="{ ...$attrs }"
>
<template v-if="isLayout(paragraph)" #default="{ entity }">
<template
v-if="isLayout(paragraph)"
#default="{ entity }"
>
<DruxtLayoutParagraph
:entity="entity"
:children="getChildren(entity)"
Expand Down Expand Up @@ -38,12 +41,8 @@ export default {
href = href.replace(this.$druxt.settings.baseUrl, '')
}
try {
const { data } = await this.$druxt.axios.get(href)
this.paragraphs = data.data
} catch(err) {
throw(err)
}
const { data } = await this.$druxt.axios.get(href)
this.paragraphs = data.data
},
computed: {
Expand Down

0 comments on commit fe4eeb5

Please sign in to comment.