Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
.then(filesInfo => {
const state = {
values: filesInfo.map(fileInfo => fileInfo.dataURL),
filesInfo
};
setState(this, state, () => {
if (multiple) {
onChange(state.values);
} else {
onChange(state.values[0]);
}
});
});
};
asyncSetState(state, options = {validate: false}) {
setState(this, state, () => {
this.props.onChange(this.state.value, options);
});
}
asyncSetState(state, options = {validate: false}) {
setState(this, state, () => {
this.props.onChange(this.state, options);
});
}
asyncSetState(state, options = {validate: false}) {
setState(this, state, () => {
this.props.onChange(this.state.items, options);
});
}