FarmBot/Farmbot-Web-App

View on GitHub
frontend/sequences/request_auto_generation.ts

Summary

Maintainability
A
1 hr
Test Coverage

Function requestAutoGeneration has 28 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export const requestAutoGeneration = (props: RequestAutoGenerationProps) => {
  fetch(API.current.aiPath, {
    method: "post",
    headers: {
      Authorization: `Bearer: ${store.getState().auth?.token.encoded}`,
Severity: Minor
Found in frontend/sequences/request_auto_generation.ts - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status