Commit 1463b9d3 authored by Josh Slaughter's avatar Josh Slaughter
Browse files

Adjusting to check for disabled flag and pull out keys from deprecated objects

No related merge requests found
Showing with 6 additions and 2 deletions
+6 -2
......@@ -130,7 +130,11 @@ const hydrateProjects = (state: State, dispatch: React.Dispatch<Action>) => {
if (partialFailures && partialFailures.length) {
const missing: string[] = [];
partialFailures.forEach(failure => {
missing.push(...(failure.details || [])?.map(detail => _.get(detail, "name")));
(failure.details || []).forEach(detail => {
if (_.get(detail, ["data", "disabled"])) {
missing.push(_.get(detail, "name"));
}
});
});
dispatch({
......@@ -176,7 +180,7 @@ const ProjectSelector = ({ onError }: ProjectSelectorProps) => {
}
if (onError && state[Group.DEPRECATED] && Object.keys(state[Group.DEPRECATED]).length) {
onError({ projects: state[Group.DEPRECATED], type: "DEPRECATED" });
onError({ projects: Object.keys(state[Group.DEPRECATED]), type: "DEPRECATED" });
}
const dashState: DashState = { projectData: {}, selected: [] };
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment