Skip to content
Snippets Groups Projects
Verified Commit d6953901 authored by Nicolas Werner's avatar Nicolas Werner
Browse files

Fix unsupported being unsettable

parent 31a703c9
No related branches found
No related tags found
No related merge requests found
Pipeline #2618 failed
......@@ -13,9 +13,8 @@ from_json(const nlohmann::json &obj, HiddenEvents &content)
if (obj.contains("hidden_event_types")) {
content.hidden_event_types = std::vector<EventType>{};
for (const auto &typeStr : obj.at("hidden_event_types")) {
if (auto type = getEventType(typeStr.get<std::string>());
type != EventType::Unsupported)
content.hidden_event_types->push_back(type);
auto type = getEventType(typeStr.get<std::string>());
content.hidden_event_types->push_back(type);
}
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment