这是indexloc提供的服务,不要输入任何密码
Skip to content

Console Permissions - Cannot read property 'length' of undefined #3789

@jcmoore0

Description

@jcmoore0

Problem: Error: Cannot read property 'length' of undefined
Additional Info:

  1. Occurs when editing 'SELECT' permission.
  2. Is intermittent and usually occurs on 1 of my 2 roles for a table.
  3. Bulk sql/ loadSchema data from server is missing 'permissions.select.computed_fields' empty array
  4. I don't have any computed_columns

v1.1.0-beta.2

line 89 - console/src/components/Services/Data/PermissionsSummary/utils.js
permission['computed_fields'] is undefined

 Object.keys(tableFields).forEach(fieldType => {
      noFields = noFields && !permission[fieldType].length;

      allFields =
        allFields &&
        (permission[fieldType] === '*' || 
          permission[fieldType].length === tableFields[fieldType].length);   <-- there is not a computed_fields property on permission
    });

Thanks,
John

Metadata

Metadata

Assignees

No one assigned

    Labels

    c/consoleRelated to consolee/quickfixcan be wrapped up in few hoursk/bugSomething isn't workingp/urgentImmediate action required

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions