diff --git a/ui/src/editor-core/properties-panel.js b/ui/src/editor-core/properties-panel.js index 30d8d43d97..070c19b6e6 100644 --- a/ui/src/editor-core/properties-panel.js +++ b/ui/src/editor-core/properties-panel.js @@ -231,7 +231,8 @@ PropertiesPanel.prototype.save = function( mainObject, { reloadPropertiesPanel: false, - }).done(() => { + }, + ).then(() => { if (!target.drawerWidget) { app.viewer.renderRegion( app.getObjectByTypeAndId('region', target.regionId), @@ -1784,7 +1785,7 @@ PropertiesPanel.prototype.render = function( mainObject, { reloadPropertiesPanel: false, - }).done(() => { + }).then(() => { if (!target.drawerWidget) { app.viewer.renderRegion( app.getObjectByTypeAndId('region', target.regionId), @@ -2850,7 +2851,7 @@ PropertiesPanel.prototype.showWidgetControl = function(target) { { reloadPropertiesPanel: false, }, - ).done(() => { + ).then(() => { // Add options to dropdown const $select = $canvasWidgetSelectorControl.find('select'); diff --git a/ui/src/layout-editor/main.js b/ui/src/layout-editor/main.js index 984ea89381..46ab95ce73 100644 --- a/ui/src/layout-editor/main.js +++ b/ui/src/layout-editor/main.js @@ -3996,7 +3996,7 @@ lD.openContextMenu = function(obj, position = {x: 0, y: 0}) { { reloadPropertiesPanel: false, }, - ).done(() => { + ).then(() => { // Get new widget const newWidget = lD.getObjectByTypeAndId(