Merge pull request #7936 from AlexSCorey/FixesCredentialLookupNotfetchingdata

Adds fix to allow look up to fetch data

Reviewed-by: https://github.com/apps/softwarefactory-project-zuul
This commit is contained in:
softwarefactory-project-zuul[bot]
2020-08-20 13:42:25 +00:00
committed by GitHub

View File

@@ -68,8 +68,8 @@ function CredentialLookup({
actionsResponse?.data?.related_search_fields || []
).map(val => val.slice(0, -8)),
searchableKeys: Object.keys(
actionsResponse.data.actions?.GET || {}
).filter(key => actionsResponse.data.actions?.GET[key].filterable),
actionsResponse.data?.actions?.GET || {}
).filter(key => actionsResponse.data?.actions?.GET[key]?.filterable),
};
}, [
credentialTypeId,