diff --git a/webapp/packages/plugin-sql-editor/src/SqlEditorTabService.ts b/webapp/packages/plugin-sql-editor/src/SqlEditorTabService.ts index 845d76f389..f26e299c83 100644 --- a/webapp/packages/plugin-sql-editor/src/SqlEditorTabService.ts +++ b/webapp/packages/plugin-sql-editor/src/SqlEditorTabService.ts @@ -170,10 +170,10 @@ export class SqlEditorTabService extends Bootstrap { private async handleTabRestore(tab: ITab): Promise { if (typeof tab.handlerState.query !== 'string' || typeof tab.handlerState.order !== 'number' - || !['string', 'undefined'].includes(typeof tab.handlerState.connectionId) - || !['string', 'undefined'].includes(typeof tab.handlerState.contextId) - || !['string', 'undefined'].includes(typeof tab.handlerState.objectCatalogId) - || !['string', 'undefined'].includes(typeof tab.handlerState.currentResultTabId) + || !['string', 'undefined', 'object'].includes(typeof tab.handlerState.connectionId) + || !['string', 'undefined', 'object'].includes(typeof tab.handlerState.contextId) + || !['string', 'undefined', 'object'].includes(typeof tab.handlerState.objectCatalogId) + || !['string', 'undefined', 'object'].includes(typeof tab.handlerState.currentResultTabId) || !Array.isArray(tab.handlerState.queryTabGroups) || !Array.isArray(tab.handlerState.resultTabs) ) {