Only add summary if not empty

Signed-off-by: TheKodeToad <TheKodeToad@proton.me>
This commit is contained in:
TheKodeToad 2023-03-18 14:01:41 +00:00
parent 5346dfc782
commit 8837f06e4e

View File

@ -204,6 +204,7 @@ QByteArray ModrinthPackExportTask::generateIndex()
obj["game"] = "minecraft"; obj["game"] = "minecraft";
obj["name"] = name; obj["name"] = name;
obj["versionId"] = version; obj["versionId"] = version;
if (!summary.isEmpty())
obj["summary"] = summary; obj["summary"] = summary;
MinecraftInstance* mc = dynamic_cast<MinecraftInstance*>(instance.get()); MinecraftInstance* mc = dynamic_cast<MinecraftInstance*>(instance.get());