pankod/refine

View on GitHub
packages/airtable/src/utils/generateLogicalFilterFormula.ts

Summary

Maintainability
A
1 hr
Test Coverage

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

export const generateLogicalFilterFormula = (
  filter: LogicalFilter,
): Formula => {
  const { field, operator, value } = filter;

Severity: Minor
Found in packages/airtable/src/utils/generateLogicalFilterFormula.ts - About 1 hr to fix

    Avoid too many return statements within this function.
    Open

        return ["!=", { field }, ["BLANK"]];
    Severity: Major
    Found in packages/airtable/src/utils/generateLogicalFilterFormula.ts - About 30 mins to fix

      There are no issues that match your filters.

      Category
      Status