Skip to content

Commit

Permalink
Clear groups if refetching incomplete list
Browse files Browse the repository at this point in the history
  • Loading branch information
derneuere committed Jan 10, 2024
1 parent 4e698e4 commit d1949d8
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/layouts/dataviz/FaceDashboard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,12 @@ export function FaceDashboard() {
/* eslint-disable-next-line react-hooks/exhaustive-deps */
}, [scrollTo]);

useEffect(() => {
if (fetchingInferredFacesList || fetchingLabeledFacesList) {
setGroups([]);
}
}, [fetchingInferredFacesList, fetchingLabeledFacesList]);

// ensure that the endpoint is not undefined
const getEndpointCell = (cellContents, rowStopIndex, columnStopIndex) => {
if (cellContents[rowStopIndex][columnStopIndex]) {
Expand Down

0 comments on commit d1949d8

Please sign in to comment.