Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Permissions are not showing on the page #576

Open
vtaits opened this issue Feb 13, 2024 · 0 comments
Open

Permissions are not showing on the page #576

vtaits opened this issue Feb 13, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@vtaits
Copy link

vtaits commented Feb 13, 2024

Issue Summary

Permissions are not showing on the page due to a javascript error

Environment

  • OS: Ubuntu 22.04.3 LTS

  • API version: 9.0.1

  • Database: Postgres

  • Server config:
    Auth enabled? Yes
    Auth provider? Basic
    Customer views? No

  • web UI version: master branch

  • CLI version: 8.7.0

To Reproduce
Steps to reproduce the behavior:

  1. Go to 'Permissions page'
  2. Create a permission
  3. Refresh the page
  4. See "Sorry, nothing to display here :("
vue.runtime.esm.js:3049 TypeError: items.filter is not a function
    at VueComponent.customFilter (PermList.vue:317:1)
    at Array.filter (<anonymous>)
    at VueComponent.perms (PermList.vue:264:1)
    at Watcher.get (vue.runtime.esm.js:3446:1)
    at Watcher.evaluate (vue.runtime.esm.js:3547:1)
    at VueComponent.computedGetter [as perms] (vue.runtime.esm.js:5537:1)
    at Object.get (vue.runtime.esm.js:5329:1)
    at Proxy.render (PermList.vue:297:1)
    at Vue._render (vue.runtime.esm.js:2684:1)
    at VueComponent.updateComponent (vue.runtime.esm.js:3875:1)

Expected behavior
Created permission is displayed

Screenshots
photo_2024-02-13_12-31-19
photo_2024-02-13_12-31-46

Additional context

Trying to call an array method on a non-array

.filter(this.customFilter)

items = items.filter(item =>

@satterly satterly added the bug Something isn't working label Apr 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants