mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Replace toString with type assertion
This commit is contained in:
parent
2c3c4db843
commit
6d1b9a8fb4
1 changed files with 1 additions and 1 deletions
|
@ -124,7 +124,7 @@ export const Component = () => {
|
|||
reader.onload = () => {
|
||||
if (!reader.result) return;
|
||||
|
||||
const dataUrl = reader.result.toString();
|
||||
const dataUrl = reader.result as string; // readAsDataURL produces a string
|
||||
// FIXME: TypeScript SDK thinks body should be a File but in reality it is a Base64 string
|
||||
const body = dataUrl.split(',')[1] as never;
|
||||
getImageApi(api)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue