Skip to content

Commit 7afc9da

Browse files
committed
return elements for loading
1 parent f2955dc commit 7afc9da

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CriticalMapsKit/Sources/Helpers/ContentState.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ public enum ContentState<T: Hashable>: Equatable {
1010

1111
public var elements: T? {
1212
switch self {
13-
case let .results(results):
13+
case let .results(results), let .loading(results):
1414
return results
1515
default:
1616
return nil

0 commit comments

Comments
 (0)