Skip to content

Commit

Permalink
fix casing
Browse files Browse the repository at this point in the history
  • Loading branch information
gautamsi committed Jan 17, 2020
1 parent 52dac6a commit c492aed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/app-admin-ui/client/pages/Item/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ const Form = styled.form({

const getValues = (fieldsObject, item) => mapKeys(fieldsObject, field => field.serialize(item));

const CheckIsReadOnly = ({ maybeAccess, config }) => !maybeAccess.update || !!config.isReadOnly;
const checkIsReadOnly = ({ maybeAccess, config }) => !maybeAccess.update || !!config.isReadOnly;

// Memoizing allows us to reduce the calls to `.serialize` when data hasn't
// changed.
Expand Down Expand Up @@ -299,7 +299,7 @@ const ItemDetails = withRouter(
<Render key={field.path}>
{() => {
const [Field] = field.adminMeta.readViews([field.views.Field]);
const isReadOnly = CheckIsReadOnly(field);
const isReadOnly = checkIsReadOnly(field);
let onChange = useCallback(
value => {
this.setState(({ item: itm }) => ({
Expand Down

0 comments on commit c492aed

Please sign in to comment.