From 7fa31ba609eadb2b9d01a884abc8da57a053ee79 Mon Sep 17 00:00:00 2001 From: lyndsiWilliams Date: Fri, 23 Sep 2022 16:55:35 -0500 Subject: [PATCH] Fix schema typing --- .../src/views/CRUD/data/dataset/AddDataset/Header/index.tsx | 2 +- .../views/CRUD/data/dataset/AddDataset/LeftPanel/index.tsx | 2 +- .../src/views/CRUD/data/dataset/AddDataset/index.tsx | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/superset-frontend/src/views/CRUD/data/dataset/AddDataset/Header/index.tsx b/superset-frontend/src/views/CRUD/data/dataset/AddDataset/Header/index.tsx index bdde65967fb26..815f4c5e17cda 100644 --- a/superset-frontend/src/views/CRUD/data/dataset/AddDataset/Header/index.tsx +++ b/superset-frontend/src/views/CRUD/data/dataset/AddDataset/Header/index.tsx @@ -64,7 +64,7 @@ export default function Header({ }: { setDataset: React.Dispatch; title: string; - schema?: string; + schema?: string | null | undefined; }) { const editableTitleProps = { title: schema ? title : t('New dataset'), diff --git a/superset-frontend/src/views/CRUD/data/dataset/AddDataset/LeftPanel/index.tsx b/superset-frontend/src/views/CRUD/data/dataset/AddDataset/LeftPanel/index.tsx index a35a9f4cf0ab4..bb497da7c5a03 100644 --- a/superset-frontend/src/views/CRUD/data/dataset/AddDataset/LeftPanel/index.tsx +++ b/superset-frontend/src/views/CRUD/data/dataset/AddDataset/LeftPanel/index.tsx @@ -41,7 +41,7 @@ import { DatasetActionType } from '../types'; interface LeftPanelProps { setDataset: Dispatch>; - schema?: string; + schema?: string | null | undefined; dbId?: number; } diff --git a/superset-frontend/src/views/CRUD/data/dataset/AddDataset/index.tsx b/superset-frontend/src/views/CRUD/data/dataset/AddDataset/index.tsx index 37f21ffce650f..538d71f024652 100644 --- a/superset-frontend/src/views/CRUD/data/dataset/AddDataset/index.tsx +++ b/superset-frontend/src/views/CRUD/data/dataset/AddDataset/index.tsx @@ -74,14 +74,14 @@ export default function AddDataset() {
); const LeftPanelComponent = () => ( );