fix: 修复模板分类API的Set迭代问题和UploadModal的useEffect依赖
Some checks failed
CI Check / check (push) Has been cancelled
Some checks failed
CI Check / check (push) Has been cancelled
This commit is contained in:
parent
90af4a20fc
commit
492b97213e
@ -76,7 +76,7 @@ export async function GET() {
|
||||
categories.push({
|
||||
fieldKey: field.key,
|
||||
fieldLabel: field.label,
|
||||
options: [...new Set(options)].sort(),
|
||||
options: Array.from(new Set(options)).sort(),
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
@ -236,6 +236,7 @@ export default function UploadModal({ onClose, onSuccess }: UploadModalProps) {
|
||||
fetchScenes()
|
||||
fetchPlatforms()
|
||||
fetchTemplates()
|
||||
// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||
}, [])
|
||||
|
||||
const fetchCategories = async () => {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user