Skip to content

Commit

Permalink
Fix schema typing
Browse files Browse the repository at this point in the history
  • Loading branch information
lyndsiWilliams committed Sep 23, 2022
1 parent 78dec36 commit 7fa31ba
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ export default function Header({
}: {
setDataset: React.Dispatch<DSReducerActionType>;
title: string;
schema?: string;
schema?: string | null | undefined;
}) {
const editableTitleProps = {
title: schema ? title : t('New dataset'),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ import { DatasetActionType } from '../types';

interface LeftPanelProps {
setDataset: Dispatch<SetStateAction<object>>;
schema?: string;
schema?: string | null | undefined;
dbId?: number;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,14 +74,14 @@ export default function AddDataset() {
<Header
setDataset={setDataset}
title={dataset?.table_name ?? 'New dataset'}
schema={dataset?.schema ?? ''}
schema={dataset?.schema}
/>
);

const LeftPanelComponent = () => (
<LeftPanel
setDataset={setDataset}
schema={dataset?.schema ?? ''}
schema={dataset?.schema}
dbId={dataset?.db?.id}
/>
);
Expand Down

0 comments on commit 7fa31ba

Please sign in to comment.