Skip to content

Commit 19940bb

Browse files
committed
Fixes #15. Resolves index of out range due to resetting to an empty array rather than one with default values
1 parent f2d309e commit 19940bb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/OTPKit/Components/Consumer.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1223,7 +1223,7 @@ extension OTPConsumer: ComponentSocketDelegate {
12231223
self.producers[index].systemAdvertisementFolio = nil
12241224
self.producers[index].nameAdvertisementFolio = nil
12251225
self.producers[index].nameAdvertisementPage = nil
1226-
self.producers[index].systemTransformFolios = []
1226+
self.producers[index].systemTransformFolios = (SystemNumber.minSystemNumber...SystemNumber.maxSystemNumber).map { (systemNumber: $0, folios: []) }
12271227
} else {
12281228
switch producer.ipMode {
12291229
case .ipv4Only:

0 commit comments

Comments
 (0)