Fix targets

This commit is contained in:
zv0n 2021-07-11 13:42:14 +02:00
parent c9bbe3b207
commit 7c68754217

View File

@ -272,7 +272,7 @@ std::string getTargetsJson() {
auto targets = getTargets();
if(!targets.empty()) {
for(const auto &target : targets) {
res << " {\n" << " \"id\": " << target.first << "\n";
res << " {\n" << " \"id\": " << target.first << ",\n";
res << " \"name\": \"" << safeJson(target.second) << "\"\n },\n";
}
res.seekp(-2, std::ios_base::end);