We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c91c85f commit 322aa0aCopy full SHA for 322aa0a
1 file changed
src/index.js
@@ -6,7 +6,8 @@ import React from "react";
6
const load = function(component, product) {
7
8
// load config
9
- let config = JSON.parse(JSON.stringify(component.props.config));
+ let config = component.props.config || {enabled: true};
10
+ config = JSON.parse(JSON.stringify(config));
11
12
// load buttons
13
const _onShareThisLoaded = window.onShareThisLoaded;
0 commit comments