From f0c9dca8e170b9361ef35557c614764b0eea252d Mon Sep 17 00:00:00 2001 From: MichalC <103170279+wSBMichalee@users.noreply.github.com> Date: Fri, 4 Sep 2026 00:38:24 +0200 Subject: [PATCH] fix(services-list): add missing linkUrl field to services list block --- src/blocks/ServicesList/Component.tsx | 2 +- src/blocks/ServicesList/config.ts | 1 + src/payload-types.ts | 2 ++ 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/blocks/ServicesList/Component.tsx b/src/blocks/ServicesList/Component.tsx index 9d42df7..7f5a976 100644 --- a/src/blocks/ServicesList/Component.tsx +++ b/src/blocks/ServicesList/Component.tsx @@ -32,7 +32,7 @@ export const ServicesListBlock: React.FC = ({ title, services }) => {

- + {service.linkText}
diff --git a/src/blocks/ServicesList/config.ts b/src/blocks/ServicesList/config.ts index 7afa789..b536136 100644 --- a/src/blocks/ServicesList/config.ts +++ b/src/blocks/ServicesList/config.ts @@ -14,6 +14,7 @@ export const ServicesList: Block = { { name: 'title', type: 'text', required: true }, { name: 'description', type: 'textarea', required: true }, { name: 'linkText', type: 'text', required: true }, + { name: 'linkUrl', type: 'text' }, ], }, ], diff --git a/src/payload-types.ts b/src/payload-types.ts index 2a46f31..9491c86 100644 --- a/src/payload-types.ts +++ b/src/payload-types.ts @@ -361,6 +361,7 @@ export interface Page { title: string; description: string; linkText: string; + linkUrl?: string | null; id?: string | null; }[] | null; @@ -806,6 +807,7 @@ export interface PagesSelect { title?: T; description?: T; linkText?: T; + linkUrl?: T; id?: T; }; id?: T;