From b2fe92770a4c61094502555d3755ba9e5c3374c4 Mon Sep 17 00:00:00 2001 From: Pascal Date: Wed, 20 Dec 2023 02:08:07 +0100 Subject: [PATCH] Renames block_column to block_columns to match backend response (#50) Fixes #48 --- components/PageBuilder.vue | 2 +- types/blocks/block.ts | 2 +- types/schema.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/components/PageBuilder.vue b/components/PageBuilder.vue index 652f4eb..b2ec601 100644 --- a/components/PageBuilder.vue +++ b/components/PageBuilder.vue @@ -15,7 +15,7 @@ const componentMap: Record = { block_video: resolveComponent('BlocksVideo'), block_gallery: resolveComponent('BlocksGallery'), block_steps: resolveComponent('BlocksSteps'), - block_column: resolveComponent('BlocksColumns'), + block_columns: resolveComponent('BlocksColumns'), block_divider: resolveComponent('BlocksDivider'), }; diff --git a/types/blocks/block.ts b/types/blocks/block.ts index ee9b41e..edec702 100644 --- a/types/blocks/block.ts +++ b/types/blocks/block.ts @@ -15,7 +15,7 @@ import type { BlockVideo } from './block-video'; import type { BlockDivider } from './block-divider'; export type BlockType = - | 'block_column' + | 'block_columns' | 'block_cta' | 'block_faqs' | 'block_form' diff --git a/types/schema.ts b/types/schema.ts index c146665..9d807cb 100644 --- a/types/schema.ts +++ b/types/schema.ts @@ -78,7 +78,7 @@ export interface Schema { pages_blog: PagesBlog; // Blocks - block_column: BlockColumn[]; + block_columns: BlockColumn[]; block_cta: BlockCta[]; block_faq: BlockFaq[]; block_form: BlockForm[];