changeset 45040c3b6577 in sao:default
details: https://hg.tryton.org/sao?cmd=changeset;node=45040c3b6577
description:
        Record.reset does not return a promise anymore

        Since 8345380bb435, we should Call display just after the call to reset.

        issue8627
        review270191002
diffstat:

 src/screen.js |  5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

diffs (15 lines):

diff -r 432806fd379d -r 45040c3b6577 src/screen.js
--- a/src/screen.js     Sat Sep 07 23:26:10 2019 +0200
+++ b/src/screen.js     Sat Sep 07 23:30:28 2019 +0200
@@ -1412,9 +1412,8 @@
                 this.current_record.cancel();
                 if (this.current_record.id < 0) {
                     if (initial_value) {
-                        prms.push(
-                            this.current_record.reset(initial_value).then(
-                                this.display.bind(this)));
+                        this.current_record.reset(initial_value);
+                        this.display();
                     } else {
                         prms.push(this.remove(
                             false, false, false, [this.current_record]));

Reply via email to