mirror of
https://github.com/cupcakearmy/cryptgeon.git
synced 2025-09-06 17:30:39 +00:00
enforce strict typescript
This commit is contained in:
@@ -12,7 +12,7 @@
|
||||
|
||||
async function onInput(e: Event) {
|
||||
const input = e.target as HTMLInputElement
|
||||
if (input.files.length) {
|
||||
if (input?.files?.length) {
|
||||
files = Array.from(input.files)
|
||||
const data: FileDTO[] = await Promise.all(
|
||||
files.map(async (file) => ({
|
||||
|
Reference in New Issue
Block a user