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 <[email protected]>

* Add to CHANGELOG

Signed-off-by: Huy Nguyen <[email protected]>

---------

Signed-off-by: Huy Nguyen <[email protected]>
(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.