fix: compatibility fix for some formerly imported corrupted metadata (#307)

* fix: compatibility fix for some formerly imported corrupted metadata

* fix: use font family names of sys fonts
This commit is contained in:
Huang Xin
2025-02-07 02:53:30 +01:00
parent 023ba663e3
commit adfdb10d8e
9 changed files with 17 additions and 11 deletions
@@ -25,7 +25,7 @@ const FontDropdown: React.FC<DropdownProps> = ({
const _ = useTranslation();
const iconSize16 = useResponsiveSize(16);
const defaultIconSize = useDefaultIconSize();
const selectedOption = options.find((option) => option.option === selected)!;
const selectedOption = options.find((option) => option.option === selected) || options[0]!;
return (
<div className='dropdown dropdown-top'>
<button