Skip to content

Commit f1df170

Browse files
authored
Merge pull request #1829 from andybalaam/prevent-adding-bookmark-with-bad-url
Prevent saving a newly-added bookmark if the URL is bad
2 parents 7f8a733 + 6fae653 commit f1df170

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ui/views/native/AddBookmarkIntent.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ export default {
177177
},
178178
methods: {
179179
async onSave() {
180-
if (!this.tree.findFolder(this.temporaryParent)) {
180+
if (!this.tree.findFolder(this.temporaryParent) || this.urlError) {
181181
return
182182
}
183183
await this.$store.dispatch(actions.CREATE_BOOKMARK, {

0 commit comments

Comments
 (0)