fix: change getAsset to not return a promise (#3232)
* fix: change getAsset to not return a promise * fix: update markdown widget per getAsset changes * test: fix editor component image test * docs: update getAsset docs
This commit is contained in:
@ -186,7 +186,7 @@ export default class ListControl extends React.Component {
|
||||
|
||||
handleAddType = (type, typeKey) => {
|
||||
const { value, onChange } = this.props;
|
||||
let parsedValue = fromJS(this.mixedDefault(typeKey, type));
|
||||
const parsedValue = fromJS(this.mixedDefault(typeKey, type));
|
||||
this.setState({ itemsCollapsed: this.state.itemsCollapsed.push(false) });
|
||||
onChange((value || List()).push(parsedValue));
|
||||
};
|
||||
|
Reference in New Issue
Block a user