angular-slickgrid 7.0.1 → 7.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1050,9 +1050,6 @@ class AngularSlickgridComponent {
|
|
|
1050
1050
|
if (!this.gridOptions || !this.columnDefinitions) {
|
|
1051
1051
|
throw new Error('Using `<angular-slickgrid>` requires [gridOptions] and [columnDefinitions], it seems that you might have forgot to provide them since at least of them is undefined.');
|
|
1052
1052
|
}
|
|
1053
|
-
// save resource refs to register before the grid options are merged and possibly deep copied
|
|
1054
|
-
// since a deep copy of grid options would lose original resource refs but we want to keep them as singleton
|
|
1055
|
-
this._registeredResources = { ...this.forRootConfig, ...this.gridOptions }?.externalResources || [];
|
|
1056
1053
|
this.initialization(this._eventHandler);
|
|
1057
1054
|
this._isGridInitialized = true;
|
|
1058
1055
|
// recheck the empty warning message after grid is shown so that it works in every use case
|
|
@@ -1842,6 +1839,7 @@ class AngularSlickgridComponent {
|
|
|
1842
1839
|
}
|
|
1843
1840
|
/** Pre-Register any Resource that don't require SlickGrid to be instantiated (for example RxJS Resource & RowDetail) */
|
|
1844
1841
|
preRegisterResources() {
|
|
1842
|
+
this._registeredResources = this.gridOptions?.externalResources || [];
|
|
1845
1843
|
// Angular-Slickgrid requires RxJS, so we'll register it as the first resource
|
|
1846
1844
|
this.registerRxJsResource(new RxJsResource());
|
|
1847
1845
|
if (this.gridOptions.enableRowDetailView) {
|