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 069e0c8 commit d98e58bCopy full SHA for d98e58b
1 file changed
TableProMobile/TableProMobile/ViewModels/DataBrowserViewModel.swift
@@ -270,7 +270,10 @@ final class DataBrowserViewModel {
270
pagination.currentPage = 0
271
pagination.totalRows = nil
272
searchTask?.cancel()
273
- let task = Task { [weak self] in await self?.load() }
+ let task = Task { [weak self] in
274
+ guard let self else { return }
275
+ await self.load()
276
+ }
277
searchTask = task
278
await task.value
279
}
@@ -280,7 +283,10 @@ final class DataBrowserViewModel {
280
283
281
284
282
285
286
287
288
289
290
291
292
0 commit comments