mirror of
https://gitcode.com/gitea/gitea.git
synced 2025-06-18 02:38:26 +08:00
Fix a number of typescript errors (#32773)
Fixes 96 typescript errors. Behaviour changes are commented below. --------- Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
This commit is contained in:
@ -2,7 +2,7 @@ export function initSshKeyFormParser() {
|
||||
// Parse SSH Key
|
||||
document.querySelector('#ssh-key-content')?.addEventListener('input', function () {
|
||||
const arrays = this.value.split(' ');
|
||||
const title = document.querySelector('#ssh-key-title');
|
||||
const title = document.querySelector<HTMLInputElement>('#ssh-key-title');
|
||||
if (!title.value && arrays.length === 3 && arrays[2] !== '') {
|
||||
title.value = arrays[2];
|
||||
}
|
||||
|
Reference in New Issue
Block a user