The easy-to-use open source Business Intelligence and Embedded Analytics tool that lets everyone work with data :bar_chart:
TypeScript analyticsbibusiness-intelligencebusinessintelligenceclojuredashboarddatadata-analysisdata-visualizationdatabasemetabasemysqlpostgrespostgresqlreportingslacksql-editorvisualization
remove ts-expect-error in documents (#62222)
Aleksandr Lesnenko662e3c8eadb8
diff --git a/enterprise/frontend/src/metabase-enterprise/documents/hooks/use-draft-card-operations.ts b/enterprise/frontend/src/metabase-enterprise/documents/hooks/use-draft-card-operations.tsindex 80a94c23b8a..51b5bd541b3 100644--- a/enterprise/frontend/src/metabase-enterprise/documents/hooks/use-draft-card-operations.ts+++ b/enterprise/frontend/src/metabase-enterprise/documents/hooks/use-draft-card-operations.ts@@ -46,7 +46,6 @@ export function useDraftCardOperations(};dispatch(- // @ts-expect-error -- not sure whydatasetApi.util.upsertQueryData("getAdhocQuery",draftQueryArgs,diff --git a/frontend/src/metabase-types/store/state.ts b/frontend/src/metabase-types/store/state.tsindex 4b479b414e9..02677575905 100644--- a/frontend/src/metabase-types/store/state.ts+++ b/frontend/src/metabase-types/store/state.ts@@ -1,5 +1,6 @@import type { RouterState } from "react-router-redux";+import type { Api } from "metabase/api/api";import type { User } from "metabase-types/api";import type { AdminState } from "./admin";@@ -21,6 +22,8 @@ import type { VisualizerState } from "./visualizer";type ModalName = null | "collection" | "dashboard" | "action" | "help";+type MetabaseApiState = ReturnType<typeof Api.reducer>;+export interface State {admin: AdminState;app: AppState;@@ -45,6 +48,7 @@ export interface State {present: VisualizerState;future: VisualizerState[];};+ "metabase-api": MetabaseApiState;}export type Dispatch<T = any> = (action: T) => unknown | Promise<unknown>;