Clear isNew on element update [SCI-7025] (#4283)

This commit is contained in:
artoscinote 2022-07-25 11:40:28 +02:00 committed by GitHub
parent 25b808532d
commit e4525dddf5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -324,6 +324,7 @@
}, },
updateElement(element, skipRequest=false) { updateElement(element, skipRequest=false) {
let index = this.elements.findIndex((e) => e.id === element.id); let index = this.elements.findIndex((e) => e.id === element.id);
this.elements[index].isNew = false;
if (skipRequest) { if (skipRequest) {
this.elements[index].attributes.orderable = element.attributes.orderable; this.elements[index].attributes.orderable = element.attributes.orderable;