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

Try to fix uncaught syntax errors in adapter-lit-element

parent 5a88af9b
Branches
No related tags found
No related merge requests found
Pipeline #16546 passed
......@@ -286,7 +286,11 @@ export class AdapterLitElement extends LitElement {
}
break;
default:
super.attributeChangedCallback(name, oldValue, newValue);
// 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'
if (newValue || !oldValue || !name) {
super.attributeChangedCallback(name, oldValue, newValue);
}
}
// console.log("this.lang", this.tagName, name, this.lang);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment