fix: replace $.extend with spread operator

Co-authored-by: Raffael Meyer <14891507+barredterra@users.noreply.github.com>
This commit is contained in:
Devin Slauenwhite 2024-02-14 09:54:52 -05:00 committed by GitHub
parent bb73d77cec
commit c2eff72f02
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -838,9 +838,7 @@ export default class Grid {
acc[d.fieldname] = d.default;
return acc;
}, {});
this.df.data.push(
$.extend({ idx: this.df.data.length + 1, __islocal: true }, defaults)
);
this.df.data.push({ idx: this.df.data.length + 1, __islocal: true, ...defaults});
this.refresh();
}