Skip to content

Commit

Permalink
Fix bug in setting HEAD SHA.
Browse files Browse the repository at this point in the history
  • Loading branch information
hcayless committed Aug 4, 2022
1 parent a8d8f8d commit 110847a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/translate.html
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@
try {
API.commit(params.get('edit'),t.content(),`Saving ${params.get('edit')}`).then(commit => {
if (!commit.message) {
window.sessionStorage.setItem('head', commit.sha);
window.sessionStorage.setItem('head', commit.object.sha);
ev.target.setAttribute('disabled','');
document.getElementById('createpr').removeAttribute('disabled');
} else {
Expand Down

0 comments on commit 110847a

Please sign in to comment.