Skip to content

Commit

Permalink
bug(editableForm): Ensure asset is passed in as an argument
Browse files Browse the repository at this point in the history
  • Loading branch information
DavisRayM committed Apr 26, 2023
1 parent cf05f15 commit 04362c1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions jsapp/js/editorMixins/editableForm.es6
Original file line number Diff line number Diff line change
Expand Up @@ -326,8 +326,8 @@ export default assign({
params.parent = assetUtils.buildAssetUrl(this.state.parentAsset);
}
actions.resources.createResource.triggerAsync(params)
.then(() => {
hashHistory.push(`/library/${asset.uid}/edit`);
.then((asset) => {
hashHistory.push(`/library/asset/${asset.uid}/edit`);
});
} else {
// update existing asset
Expand Down

0 comments on commit 04362c1

Please sign in to comment.