Skip to content

Commit ae0590d

Browse files
authored
fix: list wrong locale variable (#1851)
fix wrong locale variable
1 parent b685f11 commit ae0590d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/list/index.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ const List = {
121121
},
122122

123123
renderEmpty(prefixCls, renderEmpty) {
124-
const locale = this;
124+
const { locale } = this;
125125
return (
126126
<div class={`${prefixCls}-empty-text`}>
127127
{(locale && locale.emptyText) || renderEmpty(h, 'List')}

0 commit comments

Comments
 (0)