fix(deps): update dependency typescript-eslint to ^8.18.0 (#1634)

Co-authored-by: homarr-renovate[bot] <158783068+homarr-renovate[bot]@users.noreply.github.com>
Co-authored-by: Meier Lukas <meierschlumpf@gmail.com>
This commit is contained in:
homarr-renovate[bot]
2024-12-09 20:39:09 +01:00
committed by GitHub
parent 51c87c1a33
commit 3bee3fe3f6
3 changed files with 67 additions and 88 deletions

View File

@@ -149,6 +149,9 @@ const fileToBase64Async = async (file: File): Promise<string> =>
new Promise((resolve, reject) => {
const reader = new FileReader();
reader.readAsDataURL(file);
// The functionality below works as expected and doesn't result in [object Object].
// eslint-disable-next-line @typescript-eslint/no-base-to-string
reader.onload = () => resolve(reader.result?.toString() ?? "");
reader.onerror = reject;
});