parent
e8dfef4bd4
commit
f7d978b7e3
5 changed files with 22 additions and 18 deletions
|
@ -817,12 +817,16 @@ export function insertFeaturedTagCompose(position, data) {
|
|||
};
|
||||
}
|
||||
|
||||
export function insertReferenceCompose(position, url, attributeType) {
|
||||
return {
|
||||
type: COMPOSE_REFERENCE_INSERT,
|
||||
position,
|
||||
url,
|
||||
attributeType,
|
||||
export function insertReferenceCompose(position, url, attributeType, routerHistory) {
|
||||
return (dispatch, getState) => {
|
||||
dispatch({
|
||||
type: COMPOSE_REFERENCE_INSERT,
|
||||
position,
|
||||
url,
|
||||
attributeType,
|
||||
});
|
||||
|
||||
ensureComposeIsVisible(getState, routerHistory);
|
||||
};
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue