Fixed API authentication for files

This commit is contained in:
frikky
2021-01-18 10:04:02 +01:00
parent 82f30a38d2
commit 6f945d1a68
8 changed files with 95 additions and 38 deletions
+10 -1
View File
@@ -948,7 +948,16 @@ const AngularWorkflow = (props) => {
})
.then((responseJson) => {
if (responseJson.success) {
setAppAuthentication(responseJson.data)
var newauth = []
for (var key in responseJson.data) {
if (responseJson.data[key].defined === false) {
continue
}
newauth.push(responseJson.data[key])
}
setAppAuthentication(newauth)
} else {
alert.error("Failed getting authentications")
}