Skip to content

Commit

Permalink
Reset no link error earlier
Browse files Browse the repository at this point in the history
  • Loading branch information
danaYatsuta committed Mar 13, 2024
1 parent f1d1ff8 commit 7e885f8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/LinkListForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ export default {
const trimmedLink = this.link.trim()
if (trimmedLink !== '') {
this.noLinkError = false
const response = await fetch(
'https://url.api.stdlib.com/[email protected]/create/?' +
new URLSearchParams({
Expand All @@ -29,7 +31,6 @@ export default {
this.$emit('addLink', newLink)
}
this.noLinkError = false
this.link = ''
} else {
this.noLinkError = true
Expand Down

0 comments on commit 7e885f8

Please sign in to comment.