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

[BUG] Interactive Editor - Empty Edit Item #415

Closed
4 tasks done
EVOTk opened this issue Jan 8, 2022 · 7 comments
Closed
4 tasks done

[BUG] Interactive Editor - Empty Edit Item #415

EVOTk opened this issue Jan 8, 2022 · 7 comments
Assignees
Labels
🐛 Bug [ISSUE] Ticket describing something that isn't working 🔨 Fixed ‼️ High Priority [ISSUE] An issue or PR that needs to be dealt with urgently 🛩️ Released 2.0.0

Comments

@EVOTk
Copy link
Contributor

EVOTk commented Jan 8, 2022

Hello @Lissy93

Environment

Self-Hosted (Docker)

Version

1.9.6

Describe the problem

In interactive mode, when I click on the edit button to modify the configuration of an Item, the page is empty.

Same on Firefox and chrome up to date
2022-01-09 00_19_28-2022_01_09_00_19_15_EVOServ_Dashy_Mozilla_Firefox png - Paint
2022-01-09 00_19_39-EVOServ - Dashy — Mozilla Firefox

Additional info

In Firefox Console :

TypeError: t.items is undefined
    getItemById App.vue:66
    getItemById App.vue:65
    getItemFromState EditItem.vue:1
    mounted EditItem.vue:1
    VueJS 19
        ne
        Ni
        insert
        L
        Es
        _update
        n
        get
        run
        Xi
        ve
        he
        promise callback*re
        ve
        tn
        update
        notify
        set
        set
    openItemSettings Item.vue:148
    itemOpened ItemContextMenu.vue:1
    VueJS 3
        ne
        i
        _wrapper
vue.runtime.esm.js:1897:12

Please tick the boxes

@EVOTk EVOTk added the 🐛 Bug [ISSUE] Ticket describing something that isn't working label Jan 8, 2022
@EVOTk EVOTk changed the title [BUG] Interactivve Editor - Empy Edit Item [BUG] Interactive Editor - Empty Edit Item Jan 8, 2022
@Lissy93 Lissy93 added the ‼️ High Priority [ISSUE] An issue or PR that needs to be dealt with urgently label Jan 8, 2022
@Lissy93
Copy link
Owner

Lissy93 commented Jan 8, 2022

Heya @EVOTk

Thanks for raising, and sorry about that

Seems like this line, this.item = this.getItemFromState(this.itemId); in EditItem.vue doesn't have any data, like it's unable to find the item matching that ID 🤔

But weirdly I can't yet recreate it in any of my instances or on the dev version. I will look into it further and update you when I find a fix. Thank you for your patience :)

@EVOTk
Copy link
Contributor Author

EVOTk commented Jan 9, 2022

If that helps you, I just gave it a try and this bug goes away if I remove the pihole widgets from my configuration.

If I remove this from my configuration:

  - name: Serveur DNS
    widgets:
      - type: pi-hole-stats
        useProxy: true
        options:
          hostname: http://192.168.2.90
          hideChart: true
          hideInfo: true
        id: 0_1009_piholestats
      - type: pi-hole-stats
        useProxy: true
        options:
          hostname: http://192.168.2.91
          hideChart: true
          hideInfo: true
        id: 1_1009_piholestats

So it works fine:
2022-01-09 10_00_53-EVOServ - Dashy — Mozilla Firefox

@EVOTk
Copy link
Contributor Author

EVOTk commented Jan 9, 2022

Oh ! And copy that, I see that the 2 widgets have the same IDs.

I modified like this:

  - name: Serveur DNS
    widgets:
      - type: pi-hole-stats
        useProxy: true
        options:
          hostname: http://192.168.2.90
          hideChart: true
          hideInfo: true
        id: 0_1009_piholestats
      - type: pi-hole-stats
        useProxy: true
        options:
          hostname: http://192.168.2.91
          hideChart: true
          hideInfo: true
        id: 1_1010_piholestats

But that doesn't change anything :(

@Lissy93
Copy link
Owner

Lissy93 commented Jan 9, 2022

Thanks so much, that was really helpful, have managed to recreate, and I think I've got a fix

@EVOTk
Copy link
Contributor Author

EVOTk commented Jan 9, 2022

Hello,

Thank you for your responsiveness, as always!

I just updated to 1.9.7, but the problem is still present with me :(

2022-01-09 21_43_30-EVOServ - Dashy — Mozilla Firefox
2022-01-09 21_43_38-EVOServ - Dashy — Mozilla Firefox

TypeError: t.items is undefined
    getItemById App.vue:66
    getItemById App.vue:65
    getItemFromState EditItem.vue:1
    mounted EditItem.vue:1
    VueJS 19
        ne
        Ni
        insert
        L
        Es
        _update
        n
        get
        run
        Xi
        ve
        he
        promise callback*re
        ve
        tn
        update
        notify
        set
        set
    openItemSettings Item.vue:148
    click languages.js:23
    VueJS 26
        ne
        i
        _wrapper
        qs
        ze
        eo
        z
        g
        k
        _
        k
        _
        Es
        _update
        n
        get
        run
        Xi
        ve
        he
        promise callback*re
        ve
        tn
        update
        notify
        set
    SET_EDIT_MODE App.vue:97
    I vuex.esm.js:844
    commit vuex.esm.js:466
    commit vuex.esm.js:465
    _withCommit vuex.esm.js:624
    commit vuex.esm.js:464
    commit vuex.esm.js:409
    startInteractiveEditor LanguageSwitcher.vue:66
    click dashy.151c3e0f.js:1
    VueJS 3
        ne
        i
        _wrapper
vue.runtime.esm.js:1897:12
    VueJS 22
        oe
        se
        ie
        ne
        Ni
        insert
        L
        Es
        _update
        n
        get
        run
        Xi
        ve
        he
        (Async: promise callback)
    re
        ve
        tn
        update
        notify
        set
        set
    openItemSettings Item.vue:148
    click languages.js:23
    VueJS 26
        ne
        i
        _wrapper
        (Async: EventListener.handleEvent)
    qs
        ze
        eo
        z
        g
        k
        _
        k
        _
        Es
        _update
        n
        get
        run
        Xi
        ve
        he
        (Async: promise callback)
    re
        ve
        tn
        update
        notify
        set
    SET_EDIT_MODE App.vue:97
    I vuex.esm.js:844
    commit vuex.esm.js:466
    commit vuex.esm.js:465
    _withCommit vuex.esm.js:624
    commit vuex.esm.js:464
    commit vuex.esm.js:409
    startInteractiveEditor LanguageSwitcher.vue:66
    click dashy.151c3e0f.js:1
    VueJS 3
        ne
        i
        _wrapper

@EVOTk
Copy link
Contributor Author

EVOTk commented Jan 21, 2022

Hello,
Thank you, it's resolved at home :)

@EVOTk EVOTk closed this as completed Jan 21, 2022
@liss-bot
Copy link
Collaborator

The fix for this issue has now been released in Dashy 2.0.0 ✨

If you haven't done so already, please update your instance to 2.0.0 or later. See Dashy 2.0.0 for full info.

Feel free to reach out if you need any more support. If you are enjoying Dashy, consider supporting the project.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 Bug [ISSUE] Ticket describing something that isn't working 🔨 Fixed ‼️ High Priority [ISSUE] An issue or PR that needs to be dealt with urgently 🛩️ Released 2.0.0
Projects
None yet
Development

No branches or pull requests

3 participants