FIX: Fix bug check diff type
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user