Skip to content

Commit

Permalink
[MM-1121]: Removed extra lines
Browse files Browse the repository at this point in the history
  • Loading branch information
Kshitij-Katiyar committed Nov 5, 2024
1 parent 456e368 commit bc5440d
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export default class JiraEpicSelector extends React.PureComponent<Props> {
searchIssues = async (userInput: string): Promise<ReactSelectOption[]> => {
let epicNameTypeId: string | undefined;
let epicNameTypeName: string | undefined;

for (const project of this.props.issueMetadata.projects) {
for (const issueType of project.issuetypes) {
epicNameTypeId = Object.keys(issueType.fields).find((key) => isEpicNameField(issueType.fields[key]));
Expand All @@ -58,7 +58,7 @@ export default class JiraEpicSelector extends React.PureComponent<Props> {
break;
}
}

if (!epicNameTypeId || !epicNameTypeName) {
return [];
}
Expand All @@ -76,7 +76,7 @@ export default class JiraEpicSelector extends React.PureComponent<Props> {
let epicIssueTypeId: string | undefined;
let epicNameTypeId: string | undefined;
let projectKey: string | undefined;

for (const project of this.props.issueMetadata.projects) {
for (const issueType of project.issuetypes) {
epicNameTypeId = Object.keys(issueType.fields).find((key) => isEpicNameField(issueType.fields[key]));
Expand Down

0 comments on commit bc5440d

Please sign in to comment.