Skip to content

Commit 724748a

Browse files
authored
Only add project to participant filter if non-null (Netflix#4147)
1 parent 359d240 commit 724748a

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

src/dispatch/static/dispatch/src/components/ParticipantSelect.vue

+8-6
Original file line numberDiff line numberDiff line change
@@ -85,12 +85,14 @@ export default {
8585
}
8686
8787
if (props.project) {
88-
if (Array.isArray(props.project) && props.project.length > 0) {
89-
filterOptions = {
90-
filters: {
91-
project: props.project,
92-
},
93-
...filterOptions,
88+
if (Array.isArray(props.project)) {
89+
if (props.project.length > 0) {
90+
filterOptions = {
91+
filters: {
92+
project: props.project,
93+
},
94+
...filterOptions,
95+
}
9496
}
9597
} else {
9698
filterOptions = {

0 commit comments

Comments
 (0)