Skip to content

Commit

Permalink
Update Dialog: Fix json parse failed
Browse files Browse the repository at this point in the history
  • Loading branch information
xfangfang committed Nov 12, 2023
1 parent 3861b88 commit 437d3c3
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions wiliwili/include/fragment/latest_update.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,11 @@ class ReleaseNote {
};
inline void from_json(const nlohmann::json& nlohmann_json_j,
ReleaseNote& nlohmann_json_t) {
if (nlohmann_json_j.contains("reactions")) {
nlohmann_json_j.get_to(nlohmann_json_t.reactions);
}
NLOHMANN_JSON_EXPAND(NLOHMANN_JSON_PASTE(NLOHMANN_JSON_FROM, tag_name, name,
body, published_at, author,
reactions));
body, published_at, author));
}

class LatestUpdate : public brls::Box {
Expand Down

0 comments on commit 437d3c3

Please sign in to comment.