Skip to content

A reactive notebook for Python — run reproducible experiments, query with SQL, execute as a script, deploy as an app, and version with git. Stored as pure Python. All in a modern, AI-native editor.

fix typecheck error for vega spec (#7027)

Shahmir Varqhac212b1db5880
diff --git a/frontend/src/components/data-table/column-summary/legacy-chart-spec.ts b/frontend/src/components/data-table/column-summary/legacy-chart-spec.ts
index 9e0022a056..096998f2fb 100644
--- a/frontend/src/components/data-table/column-summary/legacy-chart-spec.ts
+++ b/frontend/src/components/data-table/column-summary/legacy-chart-spec.ts
@@ -285,9 +285,9 @@ export function getDataSpecAndSourceName<T>(data: string | T[]): {
// eslint-disable-next-line unicorn/prefer-ternary
if (decoded.startsWith(ARROW_MAGIC_NUMBER)) {
- // @ts-expect-error vega-typings does not include arrow format
dataSpec = {
values: byteStringToBinary(decoded),
+ // @ts-expect-error vega-typings does not include arrow format
format: { type: "arrow" },
};
} else {