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)

* 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
  • Loading branch information
github-actions[bot] committed Apr 3, 2024
1 parent 6df8e62 commit 932952e
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 932952e

Please sign in to comment.