컨텐츠 내용 없을경우 버그 수정

This commit is contained in:
leedongmyung 2024-01-02 14:44:58 +09:00
parent 23a3ed4170
commit 1fc019257c

View file

@ -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}';