Skip to content

Commit

Permalink
prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
jessicamcinchak committed Jul 8, 2024
1 parent 5d35073 commit 2009449
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions api.planx.uk/modules/flows/validate/service/projectTypes.ts
Original file line number Diff line number Diff line change
@@ -1,17 +1,12 @@
import { getValidSchemaValues } from "@opensystemslab/planx-core";
import {
ComponentType,
Edges,
FlowGraph,
Node,
} from "@opensystemslab/planx-core/types";
import { ComponentType, FlowGraph } from "@opensystemslab/planx-core/types";
import countBy from "lodash/countBy";

import { isComponentType } from "../helpers";
import { FlowValidationResponse } from "./index";

const validateProjectTypes = (flowGraph: FlowGraph): FlowValidationResponse => {
// Get all passport values set by Answers of Questions or Checklists that set fn "proposal.projectType"
// Get all passport values set by Answers of Checklists that set fn "proposal.projectType"
const projectTypeVals = getProjectTypeVals(flowGraph);
if (projectTypeVals.length < 1) {
return {
Expand Down

0 comments on commit 2009449

Please sign in to comment.