FarmBot/Farmbot-Web-App

View on GitHub
frontend/logs/components/filter_menu.tsx

Summary

Maintainability
A
2 hrs
Test Coverage

Function LogsFilterMenu has 55 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export const LogsFilterMenu = (props: LogsFilterMenuProps) => {
  /** Set the filter level to the same value for all log message types. */
  const setAll = (level: number) => () => {
    MESSAGE_TYPES.map((x: keyof Filters) => props.setFilterLevel(x)(level));
  };
Severity: Major
Found in frontend/logs/components/filter_menu.tsx - About 2 hrs to fix

    There are no issues that match your filters.

    Category
    Status