We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7c0a144 commit bcce297Copy full SHA for bcce297
IPConfig/ViewModels/IPConfigListViewModel.cs
@@ -267,7 +267,11 @@ private void DeleteIPConfig()
267
[RelayCommand]
268
private async Task LoadedAsync()
269
{
270
- var col = await Task.Run(() => LiteDbHelper.Query().OrderBy(x => x.Order).ToList());
+ var col = await Task.Run(() => {
271
+ LiteDbHelper.Handle(col => col.EnsureIndex(x => x.Order));
272
+
273
+ return LiteDbHelper.Query().OrderBy(x => x.Order).ToList();
274
+ });
275
276
IPConfigList.AddRange(col);
277
}
0 commit comments