mirror of
https://github.com/h-sphere/sql-seal.git
synced 2026-07-22 05:12:18 +00:00
chore: fixing code issue
This commit is contained in:
parent
b785b016fa
commit
e8ed8c866b
1 changed files with 1 additions and 1 deletions
|
|
@ -145,7 +145,7 @@ export class SQLSealFileView extends TextFileView {
|
|||
|
||||
// Resizing and layout configuration for explorer
|
||||
const renderer = processor.renderer;
|
||||
if ('communicator' in renderer && 'gridApi' in (renderer as any)['communicator']) {
|
||||
if (renderer && 'communicator' in renderer && 'gridApi' in (renderer as any)['communicator']) {
|
||||
const api: GridApi = (renderer.communicator as any).gridApi;
|
||||
api.setGridOption('paginationAutoPageSize', true);
|
||||
api.setGridOption('domLayout', 'normal'); // Override autoHeight for proper pagination
|
||||
|
|
|
|||
Loading…
Reference in a new issue