Error when removing config properties
Closed this issue · 1 comments
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
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:
Probably need to make a copy of the config to edit that, I believe HA freezes the config now when given to the editors.