cal.pub0.org/packages/app-store/routing-forms/lib/getFieldIdentifier.ts

6 lines
160 B
TypeScript

import type { Field } from "../types/types";
const getFieldIdentifier = (field: Field) => field.identifier || field.label;
export default getFieldIdentifier;