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