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

Commit e337457

Browse files
authored
Merge pull request #1331 from ghiscoding/bugfix/global-register-resource
fix: regression externalResouces should work globally, fix #1329
2 parents 9c2610b + 72fb260 commit e337457

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
@@ -348,7 +348,7 @@ export class AngularSlickgridComponent<TData = any> implements AfterViewInit, On
348348

349349
// save resource refs to register before the grid options are merged and possibly deep copied
350350
// since a deep copy of grid options would lose original resource refs but we want to keep them as singleton
351-
this._registeredResources = this.gridOptions?.externalResources || [];
351+
this._registeredResources = ({ ...this.forRootConfig, ...this.gridOptions } as GridOption)?.externalResources || [];
352352

353353
this.initialization(this._eventHandler);
354354
this._isGridInitialized = true;

0 commit comments

Comments
 (0)