mirror of
https://github.com/go-gitea/gitea.git
synced 2026-09-02 19:13:25 +09:00
refactor: improve types in the frontend, misc fixes (#39142)
This commit is contained in:
@@ -50,7 +50,7 @@ export function initDiffFileViewedForm(el: Element) {
|
||||
// Unfortunately, actual forms cause too many problems, hence another approach is needed
|
||||
const files: Record<string, boolean> = {};
|
||||
files[fileName] = this.checked;
|
||||
const data: Record<string, any> = {files};
|
||||
const data: {files: Record<string, boolean>, headCommitSHA?: string} = {files};
|
||||
const headCommitSHA = el.getAttribute('data-headcommit');
|
||||
if (headCommitSHA) data.headCommitSHA = headCommitSHA;
|
||||
POST(el.getAttribute('data-link')!, {data});
|
||||
|
||||
Reference in New Issue
Block a user