Skip to content
This repository was archived by the owner on Jun 1, 2025. It is now read-only.

Commit 3da87b5

Browse files
committed
chore: extend all global grid options
1 parent 6630d7d commit 3da87b5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/app/modules/angular-slickgrid/components/angular-slickgrid.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,7 @@ export class AngularSlickgridComponent implements AfterViewInit, OnDestroy {
345345

346346
// save resource refs to register before the grid options are merged and possibly deep copied
347347
// since a deep copy of grid options would lose original resource refs but we want to keep them as singleton
348-
const extendedGridOptions = Slick.Utils.extend(GlobalGridOptions, this.forRootConfig, this.gridOptions) as GridOption;
348+
const extendedGridOptions = { ...GlobalGridOptions, ...this.forRootConfig, ...this.gridOptions } as GridOption;
349349
this._registeredResources = extendedGridOptions?.externalResources || extendedGridOptions?.registerExternalResources || [];
350350
/* istanbul ignore if */
351351
if (extendedGridOptions?.registerExternalResources) {

0 commit comments

Comments
 (0)