Optimize chat reponse data (#322)

This commit is contained in:
Archer
2023-09-19 16:10:30 +08:00
committed by GitHub
parent 0a4a1def1e
commit ce7da2db66
22 changed files with 157 additions and 169 deletions

View File

@@ -94,7 +94,7 @@ const MyIcon = ({ name, w = 'auto', h = 'auto', ...props }: { name: IconName } &
const [IconComponent, setIconComponent] = useState<any>(null);
useEffect(() => {
iconPaths[name]()
iconPaths[name]?.()
.then((icon) => {
setIconComponent({ as: icon.default });
})