Thomas Trompette
2025-03-25 18:17:38 +01:00
committed by GitHub
parent ddd439031f
commit 3e7ec4f756
2 changed files with 3 additions and 3 deletions

View File

@ -3,9 +3,9 @@ import { LinksFieldMenuItem } from '@/object-record/record-field/meta-types/inpu
import { recordFieldInputIsFieldInErrorComponentState } from '@/object-record/record-field/states/recordFieldInputIsFieldInErrorComponentState';
import { useSetRecoilComponentStateV2 } from '@/ui/utilities/state/component-state/hooks/useSetRecoilComponentStateV2';
import { useMemo } from 'react';
import { absoluteUrlSchema, isDefined } from 'twenty-shared/utils';
import { FieldMetadataType } from '~/generated-metadata/graphql';
import { MultiItemFieldInput } from './MultiItemFieldInput';
import { absoluteUrlSchema, isDefined } from 'twenty-shared/utils';
type LinksFieldInputProps = {
onCancel?: () => void;

View File

@ -1,10 +1,10 @@
import { absoluteUrlSchema } from 'twenty-shared/utils';
import { z } from 'zod';
import { FieldLinksValue } from '../FieldMetadata';
import { absoluteUrlSchema } from 'twenty-shared/utils';
export const linksSchema = z.object({
primaryLinkLabel: z.string(),
primaryLinkUrl: absoluteUrlSchema,
primaryLinkUrl: absoluteUrlSchema.or(z.string().length(0)),
secondaryLinks: z
.array(z.object({ label: z.string(), url: absoluteUrlSchema }))
.nullable(),