Read edit file url from data urls attribute [SCI-9900] (#6843)

This commit is contained in:
wandji 2023-12-19 15:32:31 +01:00 committed by GitHub
parent 0fae9ba1f0
commit 149f7092c6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -30,7 +30,7 @@ export default {
$wopiModal.modal('hide');
$wopiModal.find('form').off('submit');
$wopiModal.find('form').off('ajax:success');
window.open(data.edit_url, '_blank');
window.open(data.data.attributes.urls.edit_asset, '_blank');
window.focus();
} else {
HelperModule.flashAlertMsg(this.i18n.t('errors.general'), 'danger');