airbnb/caravel

View on GitHub
superset-frontend/src/dashboard/components/DashboardBuilder/state.ts

Summary

Maintainability
A
2 hrs
Test Coverage

Function useNativeFilters has 51 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export const useNativeFilters = () => {
  const [isInitialized, setIsInitialized] = useState(false);
  const canEdit = useSelector<RootState, boolean>(
    ({ dashboardInfo }) => dashboardInfo.dash_edit_perm,
  );
Severity: Major
Found in superset-frontend/src/dashboard/components/DashboardBuilder/state.ts - About 2 hrs to fix

    There are no issues that match your filters.

    Category
    Status