Fixed for-loops

This commit is contained in:
frikky
2020-05-21 07:38:27 +02:00
parent 063faf0f18
commit 8463404c95
3 changed files with 60 additions and 78 deletions
+1 -1
View File
@@ -174,7 +174,7 @@ const Workflows = (props) => {
})
.then((responseJson) => {
setWorkflowExecutions(responseJson)
if (responseJson.length > 0 && Object.getOwnPropertyNames(selectedExecution).length === 0) {
if (responseJson.length > 0) {
setSelectedExecution(responseJson[0])
}
})