|
@@ -44,8 +44,10 @@ export default {
|
|
|
},
|
|
|
updated() {
|
|
|
console.log('LinkEditable updated', this.links, this.$refs.links_list);
|
|
|
- this.$refs.links_list.lastChild.querySelector('input.new.title').value = null;
|
|
|
- this.$refs.links_list.lastChild.querySelector('input.new.url').value = null;
|
|
|
+ if (this.$refs.links_list.lastElementChild) {
|
|
|
+ this.$refs.links_list.lastElementChild.querySelector('input.new.title').value = null;
|
|
|
+ this.$refs.links_list.lastElementChild.querySelector('input.new.url').value = null;
|
|
|
+ }
|
|
|
},
|
|
|
mounted () {
|
|
|
|