fix(cv): make profile saves atomic
This commit is contained in:
@@ -175,6 +175,12 @@ public static class CvVariantSettingsJson
|
||||
{
|
||||
section.Presentation = NormalizeChoice(section.Presentation, "rows", "grid", "compact", "bubble");
|
||||
section.Columns = section.Columns is 1 or 2 ? section.Columns : null;
|
||||
section.ItemOrder = section.ItemOrder?
|
||||
.Where(key => !string.IsNullOrWhiteSpace(key))
|
||||
.Select(key => key.Trim())
|
||||
.Distinct(StringComparer.Ordinal)
|
||||
.Take(500)
|
||||
.ToList();
|
||||
}
|
||||
foreach (var section in s.CustomSections)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user