Skip to content

Commit

Permalink
chore: remove empty grid options check before throwing (#446)
Browse files Browse the repository at this point in the history
* feat: allow using SlickgridReact component w/o grid options

* chore: remove empty grid options check before throwing
  • Loading branch information
ghiscoding authored Dec 11, 2024
1 parent 0b2fb80 commit 84ff9d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/slickgrid-react/components/slickgrid-react.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,7 @@ export class SlickgridReact<TData = any> extends React.Component<SlickgridReactP
}

initialization(eventHandler: SlickEventHandler) {
if (!this._gridOptions || !this._columnDefinitions) {
if (!this._columnDefinitions) {
throw new Error('Using `<SlickgridReact>` requires columnDefinitions, it seems that you might have forgot to provide the missing bindable model.');
}

Expand Down

0 comments on commit 84ff9d4

Please sign in to comment.