fix: replace $.extend with spread operator
Co-authored-by: Raffael Meyer <14891507+barredterra@users.noreply.github.com>
This commit is contained in:
parent
bb73d77cec
commit
c2eff72f02
1 changed files with 1 additions and 3 deletions
|
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue