Skip to content

Commit

Permalink
fix: Deal with "_No response_"
Browse files Browse the repository at this point in the history
  • Loading branch information
xuanzhi33 committed Mar 25, 2024
1 parent 209ad71 commit e30c264
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions src/components/EditItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,16 @@ const importFromIssue = async () => {
const issueData = issue.body.split("\n");
const issueId = parseInt(issueData[6]);
if (issueId === id.value) {
name.value = issueData[14];
url.value = issueData[18];
const issueDataName = issueData[14];
if (issueDataName != "_No response_") {
name.value = issueDataName;
}
const issueDataUrl = issueData[18];
if (issueDataUrl != "_No response_") {
url.value = issueDataUrl;
}
found = true;
toast.success(t('importSuccess', {
issue: issue.number,
Expand Down

0 comments on commit e30c264

Please sign in to comment.