Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
小 白蛋
Clutch
Commits
1463b9d3
Commit
1463b9d3
authored
3 years ago
by
Josh Slaughter
Browse files
Options
Download
Email Patches
Plain Diff
Adjusting to check for disabled flag and pull out keys from deprecated objects
parent
c20517e7
load-state-error
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
frontend/workflows/projectSelector/src/project-selector.tsx
+6
-2
frontend/workflows/projectSelector/src/project-selector.tsx
with
6 additions
and
2 deletions
+6
-2
frontend/workflows/projectSelector/src/project-selector.tsx
+
6
-
2
View file @
1463b9d3
...
...
@@ -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
:
[]
};
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help