Skip to content

Commit

Permalink
Fix reloadData promise then method
Browse files Browse the repository at this point in the history
  • Loading branch information
maurofmferrao committed Sep 30, 2024
1 parent fb6f926 commit 4d5aa67
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions ui/src/editor-core/properties-panel.js
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,8 @@ PropertiesPanel.prototype.save = function(
mainObject,
{
reloadPropertiesPanel: false,
}).done(() => {
},
).then(() => {
if (!target.drawerWidget) {
app.viewer.renderRegion(
app.getObjectByTypeAndId('region', target.regionId),
Expand Down Expand Up @@ -1784,7 +1785,7 @@ PropertiesPanel.prototype.render = function(
mainObject,
{
reloadPropertiesPanel: false,
}).done(() => {
}).then(() => {
if (!target.drawerWidget) {
app.viewer.renderRegion(
app.getObjectByTypeAndId('region', target.regionId),
Expand Down Expand Up @@ -2850,7 +2851,7 @@ PropertiesPanel.prototype.showWidgetControl = function(target) {
{
reloadPropertiesPanel: false,
},
).done(() => {
).then(() => {
// Add options to dropdown
const $select =
$canvasWidgetSelectorControl.find('select');
Expand Down
2 changes: 1 addition & 1 deletion ui/src/layout-editor/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -3996,7 +3996,7 @@ lD.openContextMenu = function(obj, position = {x: 0, y: 0}) {
{
reloadPropertiesPanel: false,
},
).done(() => {
).then(() => {
// Get new widget
const newWidget =
lD.getObjectByTypeAndId(
Expand Down

0 comments on commit 4d5aa67

Please sign in to comment.