diff options
author | Phil Hughes <me@iamphill.com> | 2017-11-01 12:26:16 +0300 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2017-11-01 12:26:16 +0300 |
commit | b20381204ad84069677a53bff1cbe728745c38db (patch) | |
tree | 0bf5f8ac698b8ee3c5f075920bc6944666ec8da5 /app/assets/javascripts/notes/components | |
parent | 7c331ac9518c68aadc9bba0bbd1d50854699a573 (diff) |
karma spec updates
Diffstat (limited to 'app/assets/javascripts/notes/components')
-rw-r--r-- | app/assets/javascripts/notes/components/issue_note.vue | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/app/assets/javascripts/notes/components/issue_note.vue b/app/assets/javascripts/notes/components/issue_note.vue index 0ddbd672bed..40318f9a600 100644 --- a/app/assets/javascripts/notes/components/issue_note.vue +++ b/app/assets/javascripts/notes/components/issue_note.vue @@ -122,7 +122,9 @@ // we need to do this to prevent noteForm inconsistent content warning // this is something we intentionally do so we need to recover the content this.note.note = noteText; - this.$refs.noteBody.$refs.noteForm.note = noteText; // TODO: This could be better + if (this.$refs.noteBody) { + this.$refs.noteBody.$refs.noteForm.note = noteText; // TODO: This could be better + } }, }, created() { |