qri-io / frontend

frontend application for our qri.cloud site
GNU General Public License v3.0
3 stars 2 forks source link

fix: toggle bodyLoading state on dataset success #635

Closed chriswhong closed 2 years ago

chriswhong commented 2 years ago

Closes #634

Fixes the perpetual loading state for dataset body in the history view.

Looks like we are dispatching setBodyLoading() but because there is not a separate API call for body, we are never setting loading back to false when API_DATASET_SUCCESS happens.

This sets dataset.bodyLoading to false when API_DATASET_SUCCESS or API_DATASET_FAILURE fires.