Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
gallayl committed Nov 3, 2023
1 parent 67342bf commit 5ee15b9
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions frontend/src/installer/create-admin-step.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export const CreateAdminStep = Shade<WizardStepProps>({
name="userName"
variant="outlined"
autofocus
autocomplete="false"
autocomplete="off"
labelTitle="E-mail address"
type="email"
required
Expand All @@ -45,7 +45,7 @@ export const CreateAdminStep = Shade<WizardStepProps>({
variant="outlined"
type="password"
labelTitle="Password"
autocomplete="false"
autocomplete="off"
minLength={5}
pattern="[a-zA-Z0-9]{3,}"
required
Expand All @@ -62,7 +62,7 @@ export const CreateAdminStep = Shade<WizardStepProps>({
type="password"
labelTitle="Confirm Password"
required
autocomplete="false"
autocomplete="off"
/>
<input type="submit" style={{ display: 'none' }} />
</WizardStep>
Expand Down
2 changes: 1 addition & 1 deletion service/src/drives/create-dirent-list-from-files.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import type { DirectoryEntry } from 'common'
import type { File, Files } from 'formidable'

export const createDirentListFromFiles = (files: Files): DirectoryEntry[] => {
const fileArray: File[] = Object.values(files).flatMap((value) => value)
const fileArray = Object.values(files).flatMap((value) => value) as File[]
return fileArray.map((file) => ({
name: file.newFilename,
isFile: true,
Expand Down
2 changes: 1 addition & 1 deletion service/src/webtorrent/actions/post-torrent-action.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export const PostTorrentAction: RequestAction<UploadTorrentEndpoint> = async ({

logger.debug({ message: 'Upload finished', data: parseResult })

const fileArray: File[] = Object.values(parseResult.files).flatMap((value) => value)
const fileArray = Object.values(parseResult.files).flatMap((value) => value) as File[]

const entries = fileArray
.filter((file) => file.mimetype === 'application/x-bittorrent')
Expand Down
4 changes: 2 additions & 2 deletions tsconfig-base.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
"compilerOptions": {
"pretty": true,
"target": "ES2021",
"module": "ESNext",
"moduleResolution": "node16",
"module": "NodeNext",
"moduleResolution": "NodeNext",
"declaration": true,
"sourceMap": true,
"strict": true,
Expand Down

0 comments on commit 5ee15b9

Please sign in to comment.