fix(VehicleService): Fixed crash related to create_profile

This commit is contained in:
Yimura 2021-09-21 13:38:51 +02:00
parent 97a493646f
commit 799f7ce7a5

View File

@ -212,7 +212,7 @@ namespace big
m_publish_status = PublishStatus::SAVED;
else if (api::vehicle::handling::create_profile(hash, name, description, data, json))
{
this->set_active_profile(hash, json["share_code"]);
this->set_active_profile(hash, json["data"]["share_code"]);
m_publish_status = PublishStatus::SAVED;
}