chore(webui): fix eslint errors

This commit is contained in:
Tomáš Mládek 2023-03-19 20:18:14 +01:00
parent 81dcc7a8bf
commit 75c9c843ee
3 changed files with 2 additions and 4 deletions

View file

@ -183,7 +183,7 @@
} }
let listEl: HTMLUListElement; let listEl: HTMLUListElement;
let optionFocusIndex: number = -1; let optionFocusIndex = -1;
function handleArrowKeys(ev: KeyboardEvent) { function handleArrowKeys(ev: KeyboardEvent) {
if (!options.length) { if (!options.length) {
return; return;

View file

@ -13,6 +13,7 @@
hash: "", hash: "",
}, },
listen: () => { listen: () => {
// eslint-disable-next-line @typescript-eslint/no-empty-function
return () => {}; return () => {};
}, },
navigate: (to: string | number) => { navigate: (to: string | number) => {

View file

@ -143,7 +143,6 @@
async function onSelectorInput(ev: CustomEvent<IValue>) { async function onSelectorInput(ev: CustomEvent<IValue>) {
const [xValue, yValue] = selectorCoords; const [xValue, yValue] = selectorCoords;
selectorCoords = null; selectorCoords = null;
console.log("HERE");
await Promise.all( await Promise.all(
[ [
[x, xValue], [x, xValue],
@ -155,9 +154,7 @@
}) })
) )
); );
console.log("THERE");
await loadPoints(); await loadPoints();
console.log("OVERHER");
} }
</script> </script>