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

Error when removing config properties #37

Closed
2 tasks done
royto opened this issue Dec 29, 2020 · 1 comment · Fixed by #43
Closed
2 tasks done

Error when removing config properties #37

royto opened this issue Dec 29, 2020 · 1 comment · Fixed by #43
Labels
bug Something isn't working

Comments

@royto
Copy link

royto commented Dec 29, 2020

Checklist:

  • I updated to the latest version available
  • I cleared the cache of my browser

Release with the issue: 1.3.2

Last working release (if known):

Description of problem:

An error is thrown when trying to remove a properties. Example when you remove the name for the boilerplate-card ...

You can see that it keeps the last removed character as current value for the property
image

image

an error Uncaught TypeError: property "name" is non-configurable and can't be deleted is thrown

I have tried to dig into it but did not found why the error is thrown and how to fix this ...

I'm having the same issue with my custom card which use the repo as template.

Javascript errors shown in the web inspector (if applicable):

Uncaught TypeError: property "name" is non-configurable and can't be deleted
    _valueChanged boilerplate-card.js:290
    handleEvent boilerplate-card.js:82
    __boundHandleEvent boilerplate-card.js:82
    x app.c5d13434.js:10291
    E app.c5d13434.js:10291
    w app.c5d13434.js:10291
    _propertiesChanged app.c5d13434.js:10291
    _propertiesChanged app.c5d13434.js:10291
    _flushProperties app.c5d13434.js:10291
    _flushProperties app.c5d13434.js:10291
    _invalidateProperties app.c5d13434.js:10291
    M app.c5d13434.js:10291
    M app.c5d13434.js:10291
    fire app.c5d13434.js:10291
    _bindValueChanged chunk.0a259816609a91ec31fc.js:242
    R app.c5d13434.js:10291
    w app.c5d13434.js:10291
    _ app.c5d13434.js:10291
    _propertiesChanged app.c5d13434.js:10291
    _flushProperties app.c5d13434.js:10291
    _flushProperties app.c5d13434.js:10291
    _invalidateProperties app.c5d13434.js:10291
    _setProperty app.c5d13434.js:10291
    set app.c5d13434.js:10291
    _onInput chunk.0a259816609a91ec31fc.js:242
    n app.c5d13434.js:10291
    _addEventListenerToNode app.c5d13434.js:10291
    _addEventListenerToNode app.c5d13434.js:10291
    _addMethodEventListenerToNode app.c5d13434.js:10291
    _applyListeners app.c5d13434.js:10291
    i app.c5d13434.js:10291
    r app.c5d13434.js:10291
    r app.c5d13434.js:10291
    _stampTemplate app.c5d13434.js:10291
    _stampTemplate app.c5d13434.js:10291
    ready app.c5d13434.js:10291
    ready app.c5d13434.js:10291
    ready app.c5d13434.js:10291
    ready app.c5d13434.js:10291
    ready app.c5d13434.js:10291
    ready app.c5d13434.js:10291
    ready app.c5d13434.js:10291
    ready app.c5d13434.js:10291
    _enableProperties app.c5d13434.js:10291
    connectedCallback app.c5d13434.js:10291
    connectedCallback app.c5d13434.js:10291
    connectedCallback app.c5d13434.js:10291
    connectedCallback app.c5d13434.js:10291
    __insert boilerplate-card.js:82
    __commitNode boilerplate-card.js:82
    __commitTemplateResult boilerplate-card.js:82
    commit boilerplate-card.js:82
    update boilerplate-card.js:56
    __commitTemplateResult boilerplate-card.js:82
    commit boilerplate-card.js:82
    render boilerplate-card.js:186
    render boilerplate-card.js:186
    update boilerplate-card.js:186
    performUpdate boilerplate-card.js:148
    _enqueueUpdate boilerplate-card.js:148
    requestUpdateInternal boilerplate-card.js:148
    set boilerplate-card.js:148
    _toggleThing boilerplate-card.js:290
    _toggleOption boilerplate-card.js:290
    handleEvent boilerplate-card.js:82
    __boundHandleEvent boilerplate-card.js:82
    commit boilerplate-card.js:82
    update boilerplate-card.js:56
    __commitTemplateResult boilerplate-card.js:82
    commit boilerplate-card.js:82
    render boilerplate-card.js:186
    render boilerplate-card.js:186
    update boilerplate-card.js:186
    performUpdate boilerplate-card.js:148
    _enqueueUpdate boilerplate-card.js:148
    requestUpdateInternal boilerplate-card.js:148
    set boilerplate-card.js:148
    loadCardHelpers boilerplate-card.js:290
    setConfig boilerplate-card.js:186
    value chunk.004ca47d7fae03aacbfc.js:980
    value chunk.004ca47d7fae03aacbfc.js:614
    value chunk.004ca47d7fae03aacbfc.js:614
    commit app.c5d13434.js:10291
    commit app.c5d13434.js:10291
    update app.c5d13434.js:10291
    __commitTemplateResult app.c5d13434.js:10291
    commit app.c5d13434.js:10291
    a app.c5d13434.js:10291
    render app.c5d13434.js:10291
    update app.c5d13434.js:10291
boilerplate-card.js:290:534

Additional information:

@royto royto added the bug Something isn't working label Dec 29, 2020
@iantrich
Copy link
Member

Probably need to make a copy of the config to edit that, I believe HA freezes the config now when given to the editors.

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

Successfully merging a pull request may close this issue.

2 participants