Skip to content

Commit f55fddf

Browse files
committed
fix error
1 parent 39744a9 commit f55fddf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

webapp/packages/plugin-data-viewer/src/TableViewer/TableError.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ export const TableError = observer<Props>(function TableError({ model, loading,
216216
errorInfo.display = !!model.source.error;
217217
}
218218
console.log(error, model.source.error);
219-
const isSqlContextError = error.errorCode === SQL_CONTEXT_ERROR_CODE || /SQL context .* not found/i.test(error.message);
219+
const isSqlContextError = error.errorCode === SQL_CONTEXT_ERROR_CODE || /SQL context .* not found/i.test(error.message || '');
220220
if (isSqlContextError) {
221221
handleReopenEditor();
222222
}

0 commit comments

Comments
 (0)