Skip to content

Commit a806459

Browse files
committed
UPDATE: Rollback
1 parent 3a429f6 commit a806459

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

Sources/OpenTDS/Component/Button/Toolbar/ToolbarButton+Ext.swift

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,11 @@ public struct TossToolbarButtonBuilder {
77
components
88
}
99

10-
public static func buildOptional(_ components: [TossToolbarButton]?) -> [TossToolbarButton]? {
11-
return components ?? nil
10+
public static func buildOptional(_ component: TossToolbarButton?) -> [TossToolbarButton]? {
11+
if let component {
12+
return [component]
13+
} else {
14+
return nil
15+
}
1216
}
1317
}

0 commit comments

Comments
 (0)