Commit 6992ac11 authored by Fatih Acet's avatar Fatih Acet

Merge branch 'fix-reset-template' into 'master'

Fix JS error when reseting new issue template

Fixes JS error when trying to reset template when no template has been set.

See merge request !7978
parents 162da9d3 faf8f421
......@@ -70,6 +70,8 @@
// e.g.
// Api.gitignoreText item.name, @requestFileSuccess.bind(@)
requestFileSuccess(file, { skipFocus } = {}) {
if (!file) return;
const oldValue = this.editor.getValue();
let newValue = file.content;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment