컨텐츠 내용 없을경우 버그 수정
This commit is contained in:
parent
23a3ed4170
commit
1fc019257c
1 changed files with 3 additions and 6 deletions
|
|
@ -45,12 +45,9 @@ class Jira extends Command {
|
|||
var summary = issue.fields?.summary;
|
||||
if((arr != null && arr.isNotEmpty) || summary != null) {
|
||||
var content = '';
|
||||
if(arr != null)
|
||||
{
|
||||
content = arr.first.content!.first.text!;
|
||||
}
|
||||
else
|
||||
{
|
||||
try {
|
||||
content = arr!.first.content!.first.text!;
|
||||
} on Exception catch (e) {
|
||||
content = summary!;
|
||||
}
|
||||
var browseUrl = 'https://${data.domain}/browse/${data.issue}';
|
||||
|
|
|
|||
Loading…
Reference in a new issue