likyh commented on code in PR #4013:
URL:
https://github.com/apache/incubator-devlake/pull/4013#discussion_r1055168503
##########
config-ui/src/pages/blueprint/detail/panel/configuration.tsx:
##########
@@ -66,6 +64,25 @@ export const Configuration = ({
[blueprint]
)
+ const connections = useMemo(
+ () =>
+ blueprint.settings?.connections
+ .filter((cs) => cs.plugin !== Plugins.Webhook)
+ .map((cs: any) => {
+ const plugin = PluginConfig.find((p) => p.plugin === cs.plugin) as
any
+ return {
+ icon: plugin.icon,
+ name: plugin.name,
+ connectionId: cs.connectionId,
+ entities: cs.scopes[0].entities,
+ plugin: cs.plugin,
+ scopeIds: cs.scopes.map((sc: any) => sc.id)
+ }
+ })
+ .filter(Boolean),
Review Comment:
It seems like never be null
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]