This is an automated email from the ASF dual-hosted git repository.
jbonofre pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/polaris-tools.git
The following commit(s) were added to refs/heads/main by this push:
new ca8e39d fix(console): Console CI Linter TableDetailsDrawer Issue
(#122)
ca8e39d is described below
commit ca8e39db687bc8d15f8a18e24ec1c80b93d38584
Author: Adam Christian
<[email protected]>
AuthorDate: Mon Jan 5 12:15:57 2026 -0500
fix(console): Console CI Linter TableDetailsDrawer Issue (#122)
---
console/src/components/catalog/TableDetailsDrawer.tsx | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/console/src/components/catalog/TableDetailsDrawer.tsx
b/console/src/components/catalog/TableDetailsDrawer.tsx
index 10f56e4..02c2948 100644
--- a/console/src/components/catalog/TableDetailsDrawer.tsx
+++ b/console/src/components/catalog/TableDetailsDrawer.tsx
@@ -28,6 +28,7 @@ import {
import { tablesApi } from "@/api/catalog/tables"
import { Loader2 } from "lucide-react"
import { TableSchemaDisplay } from "./TableSchemaDisplay"
+import type { LoadGenericTableResponse } from "@/types/api"
import { TableDDLDisplay } from "./TableDDLDisplay"
interface TableDetailsDrawerProps {
@@ -55,7 +56,7 @@ export function TableDetailsDrawer({
// If that fails, try to fetch as a generic table
try {
return await tablesApi.getGeneric(catalogName, namespace, tableName)
- } catch (genericError) {
+ } catch {
// If both fail, throw the original Iceberg error
throw icebergError
}
@@ -68,7 +69,7 @@ export function TableDetailsDrawer({
// Check if this is a generic table (has 'table' property) or Iceberg table
(has 'metadata' property)
const isGenericTable = tableData && 'table' in tableData
- const genericTableData = isGenericTable ? (tableData as any).table : null
+ const genericTableData = isGenericTable ? (tableData as
LoadGenericTableResponse).table : null
const currentSchema = !isGenericTable && tableData?.metadata?.schemas?.find(
(s) => s["schema-id"] === tableData.metadata["current-schema-id"]