File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -156,12 +156,12 @@ class Drawer extends PureComponent<Props> {
156
156
constructor ( props : DrawerProps ) {
157
157
super ( props ) ;
158
158
159
- this . leftRender = props . leftItem ? ( Constants . isRTL ? this . renderRightActions : this . renderLeftActions ) : undefined ;
160
- this . rightRender = props . rightItems
161
- ? Constants . isRTL
162
- ? this . renderLeftActions
163
- : this . renderRightActions
164
- : undefined ;
159
+ this . leftRender = Constants . isRTL
160
+ ? props . rightItems && this . renderRightActions
161
+ : props . leftItem && this . renderLeftActions ;
162
+ this . rightRender = Constants . isRTL
163
+ ? props . leftItem && this . renderLeftActions
164
+ : props . rightItems && this . renderRightActions ;
165
165
}
166
166
167
167
private getLeftActionsContainerStyle = memoize ( ( leftItem , rightItems ) => {
You can’t perform that action at this time.
0 commit comments