fix(VehicleService): Fixed crash related to create_profile

This commit is contained in:
Yimura 2021-09-21 13:38:51 +02:00
parent 9e5a58fe74
commit b1c9dd5025
No known key found for this signature in database
GPG Key ID: 3D8FF4397E768682

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;
}