We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8d33fe3 commit 2f48df2Copy full SHA for 2f48df2
src/utils.js
@@ -56,7 +56,7 @@ export function dashToCamel(string) {
56
* @return {Object<string, string>}
57
*/
58
export function getConfigFromElement(element, mergeWithDefaults = false) {
59
- if (!element.attributes) {
+ if (!element || !element.attributes) {
60
return {};
61
}
62
0 commit comments