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:
committed by
GitHub
parent
51c87c1a33
commit
3bee3fe3f6
@@ -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;
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user