Skip to content

Commit

Permalink
fix: filter batch action experiments (#9316)
Browse files Browse the repository at this point in the history
(cherry picked from commit 5b73dc4)
  • Loading branch information
johnkim-det authored and determined-ci committed May 7, 2024
1 parent 991818b commit b208794
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions webui/react/src/components/TableActionBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -199,16 +199,16 @@ const TableActionBar: React.FC<Props> = ({

const sendBatchActions = useCallback(
async (action: BatchAction): Promise<BulkActionResult | void> => {
const managedExperimentIds = selectedExperiments
.filter((exp) => !exp.unmanaged)
const validExperimentIds = selectedExperiments
.filter((exp) => !exp.unmanaged && canActionExperiment(action, exp))
.map((exp) => exp.id);
const params = {
experimentIds: managedExperimentIds,
experimentIds: validExperimentIds,
projectId: project.id,
};
switch (action) {
case ExperimentAction.OpenTensorBoard: {
if (managedExperimentIds.length !== selectedExperiments.length) {
if (validExperimentIds.length !== selectedExperiments.length) {
// if unmanaged experiments are selected, open experimentTensorBoardModal
openExperimentTensorBoardModal();
} else {
Expand Down

0 comments on commit b208794

Please sign in to comment.