Skip to content

Commit 50765f1

Browse files
committed
fix: Not showing the expected result of a valid file/config
1 parent 72b2813 commit 50765f1

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

frontend/src/operationsPage/operations/valid_file.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,11 @@ const ValidFileOperation = (props) => {
2929
.then((r) => r.json())
3030
.then((r) => {
3131
if ('success' === r.message) {
32-
set_operation_result({ result: 'The file is Valid' })
32+
if (r.is_valid) {
33+
set_operation_result({ result: 'The file is Valid' })
34+
} else {
35+
set_operation_result({ result: 'The file is not Valid' })
36+
}
3337
} else if ('no_dependencies' === r.message) {
3438
window.alert("The requirement file don't have dependencies")
3539
}

0 commit comments

Comments
 (0)