Skip to content

Commit

Permalink
fix: remove log
Browse files Browse the repository at this point in the history
  • Loading branch information
Kikobeats committed Nov 23, 2018
1 parent 8cb8232 commit cd40aa2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 2 additions & 1 deletion packages/react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,8 @@
"fetch"
],
"ignore": [
"/lib/"
"/lib/",
"/storybook-static/"
],
"parser": "babel-eslint",
"plugins": [
Expand Down
2 changes: 0 additions & 2 deletions packages/react/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,8 @@ class Microlink extends Component {
noFetch || !url ? Promise.resolve({}) : fetchFromApi(this.props)

fetch.then(({ data }) => {
console.log('this.props', this.props)
const payload =
typeof setData === 'function' ? setData(data) : { ...data, ...setData }
console.log('payload', payload)
this.setData(payload)
})
}
Expand Down

0 comments on commit cd40aa2

Please sign in to comment.