1
0
Fork 0
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:
Bill Thornton 2025-03-21 12:55:12 -04:00
parent 2c3c4db843
commit 6d1b9a8fb4

View file

@ -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)