superset-frontend/src/pages/DatasetCreation/index.tsx
Function AddDataset
has 54 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export default function AddDataset() {
const [dataset, setDataset] = useReducer<
Reducer<Partial<DatasetObject> | null, DSReducerActionType>
>(datasetReducer, null);
const [hasColumns, setHasColumns] = useState(false);
Function datasetReducer
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function datasetReducer(
state: DatasetObject | null,
action: DSReducerActionType,
): Partial<DatasetObject> | Schema | null {
const trimmedState = {