Skip to content

Commit

Permalink
[Multiple Datasource] Pass selected data sources to plugin consumers …
Browse files Browse the repository at this point in the history
…when the multi-select component initially loads (#6333) (#6335)

* Add callback function to initial load

Signed-off-by: Huy Nguyen <73027756+huyaboo@users.noreply.github.com>

* Add to CHANGELOG

Signed-off-by: Huy Nguyen <73027756+huyaboo@users.noreply.github.com>

---------

Signed-off-by: Huy Nguyen <73027756+huyaboo@users.noreply.github.com>
(cherry picked from commit cb24346)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

# Conflicts:
#	CHANGELOG.md

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
1 parent 6df8e62 commit bf78064
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,10 @@ export class DataSourceMultiSelectable extends React.Component<
...this.state,
selectedOptions,
});

this.props.onSelectedDataSources(
selectedOptions.filter((option) => option.checked === 'on')
);
}
})
.catch(() => {
Expand Down

0 comments on commit bf78064

Please sign in to comment.