Skip to content

Commit

Permalink
Merge pull request #205 from kookmin-sw/bug/fe/#204-helperArticleBug
Browse files Browse the repository at this point in the history
bug: #204-헬퍼화면에서 헬피글쓰면 헬퍼화면에서 보이는 버그 수정
  • Loading branch information
kevinmj12 authored May 15, 2024
2 parents 7e8fda0 + db64762 commit c95ada1
Showing 1 changed file with 15 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -108,17 +108,22 @@ class _HelperBoardState extends State<HelperBoardScreen> {
),
);
if (articleObj != null) {
helperArticlePreviews.insert(
if (isHelper == articleObj.isHelper) {
helperArticlePreviews.insert(
0,
HelperArticlePreviewModel.fromJson({
"id": articleObj.id,
"isDone": articleObj.isDone,
"isHelper": articleObj.isHelper,
"title": articleObj.title,
"author": articleObj.author,
"country": articleObj.country,
"createdDate": articleObj.createdDate,
}));
HelperArticlePreviewModel.fromJson(
{
"id": articleObj.id,
"isDone": articleObj.isDone,
"isHelper": articleObj.isHelper,
"title": articleObj.title,
"author": articleObj.author,
"country": articleObj.country,
"createdDate": articleObj.createdDate,
},
),
);
}
setState(() {});
}
},
Expand Down

0 comments on commit c95ada1

Please sign in to comment.