Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/core/components/debug.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@ export default class Debug extends React.Component {

let { getState, getComponent } = this.props

window.props = this.props
if (process.env.NODE_ENV === "development") {
window.props = this.props
}

const Collapse = getComponent("Collapse")

Expand Down
14 changes: 2 additions & 12 deletions src/core/components/examples-select-value-retainer.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,18 +52,8 @@ export default class ExamplesSelectValueRetainer extends React.PureComponent {
setRetainRequestBodyValueFlag: () => {
// NOOP
},
onSelect: (...args) =>
// eslint-disable-next-line no-console
console.log(
"ExamplesSelectValueRetainer: no `onSelect` function was provided",
...args
),
updateValue: (...args) =>
// eslint-disable-next-line no-console
console.log(
"ExamplesSelectValueRetainer: no `updateValue` function was provided",
...args
),
onSelect: () => {},
updateValue: () => {},
}

constructor(props) {
Expand Down
8 changes: 1 addition & 7 deletions src/core/components/examples-select.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,7 @@ export default class ExamplesSelect extends React.PureComponent {

static defaultProps = {
examples: Map({}),
onSelect: (...args) =>
// eslint-disable-next-line no-console
console.log(
// FIXME: remove before merging to master...
`DEBUG: ExamplesSelect was not given an onSelect callback`,
...args
),
onSelect: () => {},
currentExampleKey: null,
showLabels: true,
}
Expand Down