refs #4925 fix: coge únicamente los últimos cambios aplicados
gitea/salix/pipeline/head There was a failure building this commit Details

This commit is contained in:
Vicent Llopis 2023-01-03 13:21:51 +01:00
parent ddfee57470
commit 22d0da273e
1 changed files with 1 additions and 2 deletions

View File

@ -30,7 +30,6 @@ class Controller extends Section {
onSubmit() {
const changes = this.$.model.getChanges();
console.log(changes);
const data = {
creates: changes.creates,
deletes: changes.deletes,
@ -38,9 +37,9 @@ class Controller extends Section {
maxPriority: this.getHighestPriority()
};
this.$http.patch(`Tags/onSubmit`, data).then(() => {
this.$.model.refresh();
this.$.watcher.notifySaved();
this.$.watcher.updateOriginalData();
this.card.reload();
});
}
}