Skip to content

Commit

Permalink
Fix image error display
Browse files Browse the repository at this point in the history
  • Loading branch information
oliverroick committed Oct 23, 2023
1 parent f185097 commit 81e7236
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion src/components/ErrorAlerts.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ const ErrorAlerts = () => {
const statsErrors = useSelector(selectStatsErrors);
const exportErrors = useSelector(selectExportErrors);


const enrichedErrors = [
enrichErrors(labelsErrors, 'Label Error', 'labels'),
enrichErrors(projectsErrors, 'Project Error', 'projects'),
Expand Down
4 changes: 2 additions & 2 deletions src/features/images/imagesSlice.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ export const imagesSlice = createSlice({

dismissImagesError: (state, { payload }) => {
const index = payload;
state.loadingStates.image.errors.splice(index, 1);
state.loadingStates.images.errors.splice(index, 1);
},

preFocusImageStart: (state, { payload }) => {
Expand Down Expand Up @@ -254,7 +254,7 @@ export const imagesSlice = createSlice({

deleteImagesError: (state, { payload }) => {
state.loadingStates.images.isLoading = false;
state.loadingStates.images.error = payload;
state.loadingStates.images.errors = payload;
},
},
});
Expand Down

0 comments on commit 81e7236

Please sign in to comment.