Skip to content
Snippets Groups Projects
Commit b1da4cbc authored by Tögl, Christina's avatar Tögl, Christina
Browse files

Undo fix

parent 5e188533
No related branches found
No related tags found
No related merge requests found
...@@ -286,11 +286,11 @@ export class AdapterLitElement extends LitElement { ...@@ -286,11 +286,11 @@ export class AdapterLitElement extends LitElement {
} }
break; break;
default: default:
// The function should not be called if newValue is empty but name is set // The function should not be called if newValue is empty but name and oldValue are set
// This should prevent 'Uncaught SyntaxError: JSON.parse unexpected end of data at line 1 column 1 of the JSON data' // This should prevent 'Uncaught SyntaxError: JSON.parse unexpected end of data at line 1 column 1 of the JSON data'
if (newValue || !name) { if (newValue || !oldValue || !name) {
super.attributeChangedCallback(name, oldValue, newValue); super.attributeChangedCallback(name, oldValue, newValue);
// } else { //!newValue && name // } else {
// console.log("attributeChangedCallback ignored", name, oldValue, newValue); // console.log("attributeChangedCallback ignored", name, oldValue, newValue);
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment