FIX: Fix bug check diff type

This commit is contained in:
2025-08-26 09:58:30 +07:00
parent 6b222bfa70
commit a021658fa9
4 changed files with 19 additions and 22 deletions

View File

@@ -87,19 +87,6 @@ export default function DiffPage() {
setDiffDir('')
return
}
const [isOk, validType, errorType] = await DiffService.CheckTypeHDiff(basePath)
if (!isOk) {
toast.error(errorType)
setDiffCheckResult('error')
setDiffDir('')
return
}
if (validType == "") {
toast.error('Not valid file type')
setDiffCheckResult('error')
setDiffDir('')
return
}
setDiffDir(basePath)
setDiffCheckResult('success')
} else {
@@ -134,8 +121,6 @@ export default function DiffPage() {
}
setProgressUpdate(1)
if (validType === 'hdiffmap.json') {
setStageType('Version Validate')
setProgressUpdate(0)