diff --git a/bricks/dataviewer.js b/bricks/dataviewer.js index a7f02a2..d8a9e89 100644 --- a/bricks/dataviewer.js +++ b/bricks/dataviewer.js @@ -230,10 +230,10 @@ bricks.DataViewer = class extends bricks.VBox { } async add_record_finish(f, event){ f.dismiss(); + this.render(); var resp = event.params; var desc = await resp.json(); var w = await bricks.widgetBuild(desc); - this.render(); } update_record(){ var record = this.select_row.user_data; @@ -260,12 +260,10 @@ bricks.DataViewer = class extends bricks.VBox { f.dismiss(); } async update_record_finish(form, event){ + await this.renew_record_view(form, this.select_row); var resp = event.params; var desc = await resp.json(); var w = await bricks.widgetBuild(desc); - if (desc.widgettype == 'Message'){ - await this.renew_record_view(form, this.select_row); - } } delete_record(row, record){ var conform_w = new bricks.Conform({