Skip to content

Commit b478525

Browse files
Use default, humanised, label (#708)
1 parent de686c5 commit b478525

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

admin-js/src/App.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ function createFields(resource, name, permissions) {
136136
c = <C source={field} {...state["props"]} />;
137137
}
138138
// Show icon if user doesn't have permission to view this field (based on filters).
139-
components.push(<WithRecord source={field} label={state["props"]["label"] || field} render={
139+
components.push(<WithRecord source={field} label={state["props"]["label"]} render={
140140
(record) => hasPermission(`${name}.${field}.view`, permissions, record) ? c : <VisibilityOffIcon />
141141
} />);
142142
}

0 commit comments

Comments
 (0)