[FRONTEND] fix javascript linting errors

This commit is contained in:
Gusted 2024-02-25 23:39:07 +01:00 committed by Earl Warren
parent 9560492a84
commit c4a92ec9da
No known key found for this signature in database
GPG key ID: 0579CB2928A78A00
2 changed files with 3 additions and 3 deletions

View file

@ -2,14 +2,14 @@ import {hideElem, showElem} from '../utils/dom.js';
import {initComboMarkdownEditor} from './comp/ComboMarkdownEditor.js';
export function initRepoRelease() {
[...document.querySelectorAll('.remove-rel-attach')].forEach((el) => {
for (const el of document.querySelectorAll('.remove-rel-attach')) {
el.addEventListener('click', (e) => {
const uuid = e.target.getAttribute('data-uuid');
const id = e.target.getAttribute('data-id');
document.querySelector(`input[name='attachment-del-${uuid}']`).value = 'true';
hideElem(`#attachment-${id}`);
});
});
}
}
export function initRepoReleaseNew() {

View file

@ -5,7 +5,7 @@ window.addEventListener('load', async () => {
const url = document.getElementById('swagger-ui').getAttribute('data-source');
const ui = SwaggerUI({
url: url,
url,
dom_id: '#swagger-ui',
deepLinking: true,
docExpansion: 'none',