🌈 Color histograms for images, along with stats

This commit is contained in:
2022-02-10 01:22:47 -08:00
parent 7a10fb4d35
commit df2d336b48
11 changed files with 133 additions and 19 deletions

View File

@@ -93,7 +93,6 @@ function comicinfoReducer(state = initialState, action) {
}
});
});
console.log(updatedState);
return {
...state,
issuesForVolume: updatedState,

View File

@@ -5,7 +5,6 @@ import {
IMS_RAW_IMPORT_SUCCESSFUL,
IMS_RAW_IMPORT_FAILED,
IMS_RECENT_COMICS_FETCHED,
IMS_DATA_FETCH_ERROR,
IMS_CV_METADATA_IMPORT_SUCCESSFUL,
IMS_CV_METADATA_IMPORT_FAILED,
IMS_CV_METADATA_IMPORT_CALL_IN_PROGRESS,
@@ -19,6 +18,7 @@ import {
LS_COMIC_ADDED,
IMG_ANALYSIS_CALL_IN_PROGRESS,
IMG_ANALYSIS_DATA_FETCH_SUCCESS,
FILEOPS_STATE_RESET,
} from "../constants/action-types";
const initialState = {
IMSCallInProgress: false,
@@ -151,6 +151,13 @@ function fileOpsReducer(state = initialState, action) {
imageAnalysisResults: action.result,
};
}
case FILEOPS_STATE_RESET: {
return {
...state,
imageAnalysisResults: {},
};
}
default:
return state;
}