likyh commented on code in PR #3496:
URL:
https://github.com/apache/incubator-devlake/pull/3496#discussion_r1003248582
##########
config-ui/src/components/blueprints/create-workflow/DataScopes.jsx:
##########
@@ -144,27 +140,22 @@ const DataScopes = (props) => {
disabled={isRunning}
placeholder='username/repo, username/another-repo'
values={
- projects[configuredConnection.id]?.map(
- (p) => p.value
- ) || []
+ selectedScopeEntities?.map((p) => p.value) || []
}
fill={true}
onChange={(values) =>
- setProjects((p) => ({
- ...p,
- [configuredConnection.id]: [
- ...values.map(
- (v, vIdx) =>
- new GitHubProject({
- id: v,
- key: v,
- title: v,
- value: v,
- type: 'string'
- })
- )
- ]
- }))
+ setScopeEntities([
+ ...values.map(
+ (v, vIdx) =>
+ new GitHubProject({
Review Comment:
https://github.com/apache/incubator-devlake/pull/3496/files#diff-14f5220fdc068ccea4c51287ebc5ba3b26882d1e542d87daff33c5470207525cR132-R134
Here is the github repo input. There is no other entity
--
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]