[bugfix]: Remove setting path in attempt to bypass bug (#344)

* Remove setting path in attempt to bypass bug
This commit is contained in:
Kendall Garner 2023-11-01 05:02:34 +00:00 committed by GitHub
parent 327fa2b02f
commit 6bd836fad0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -68,11 +68,9 @@ export const ApplicationSettings = () => {
const fontList = useMemo(() => {
if (fontSettings.custom) {
const newFile = new File([], fontSettings.custom.split(/(\\|\/)/g).pop()!);
newFile.path = fontSettings.custom;
return newFile;
return fontSettings.custom.split(/(\\|\/)/g).pop()!;
}
return null;
return '';
}, [fontSettings.custom]);
const onFontError = useCallback(
@ -241,7 +239,7 @@ export const ApplicationSettings = () => {
control: (
<FileInput
accept=".ttc,.ttf,.otf,.woff,.woff2"
defaultValue={fontList}
placeholder={fontList}
w={300}
onChange={(e) =>
setSettings({