machine-learning-exchange/mlx

Selected assets show up selected across different menus

Zachary-Fernandes opened this issue · 2 comments

Describe the bug

When someone selects some assets from one menu displaying all assets of one type and then enters a menu displaying all assets of a different type, it will say there are selected assets of that type when none are currently selected in that menu.

To Reproduce

The below steps use datasets and pipelines as example asset types, but this can occur across any asset types.

Steps to reproduce the behavior:

  1. On the side bar, click "Datasets"
  2. Toward the top of the page, click "VIEW ALL DATASETS"
  3. Click the leftmost check boxes for some of the datasets
  4. Note how many assets are selected with the line "Datasets (n selected)" where n is the number of datasets selected
  5. On the side bar, click "Pipelines"
  6. Toward the top of the page, click "VIEW ALL PIPELINES"
  7. Notice the line "Pipelines (n selected)" where n is the number of datasets selected
  8. Find none of the pipelines have checked boxes to the left of them

Expected behavior

When the user switches to a different asset page, they should see zero assets of that type selected.

Screenshots

Datasets menu:

datasets

Pipelines menu:

pipelines

Interesting observation @Zachary-Fernandes! Since you worked on this recently, did you find out why this happens? Some state that does not get cleared when navigating away from the page?

@ckadner could you please assign this issue to me? thank you!