responsible-ai-toolbox icon indicating copy to clipboard operation
responsible-ai-toolbox copied to clipboard

Handle state change in `TreatmentView.tsx`

Open gaugup opened this issue 2 years ago • 1 comments

Description

Now that causal component can update if the global cohort changes, there was a bug in TreatmentView.tsx where new treatment policy for a new global cohort wouldn't update the Treatment chart. The fix is to check if the number of policy samples are different in the current props and the previous props and update the state if they are unequal.

Checklist

  • [ ] I have added screenshots above for all UI changes.
  • [ ] I have added e2e tests for all UI changes.
  • [ ] Documentation was updated if it was needed.

gaugup avatar Jan 24 '23 18:01 gaugup

https://responsibleai.blob.core.windows.net/pullrequest/microsoft/responsible-ai-toolbox/gaugup/FixTreatmentView/dashboard/index.html

github-actions[bot] avatar Jan 24 '23 19:01 github-actions[bot]