Skip to content

Commit

Permalink
Renames block_column to block_columns to match backend response (#50)
Browse files Browse the repository at this point in the history
Fixes #48
  • Loading branch information
pascalvb authored Dec 20, 2023
1 parent a635474 commit b2fe927
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion components/PageBuilder.vue
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const componentMap: Record<BlockType, any> = {
block_video: resolveComponent('BlocksVideo'),
block_gallery: resolveComponent('BlocksGallery'),
block_steps: resolveComponent('BlocksSteps'),
block_column: resolveComponent('BlocksColumns'),
block_columns: resolveComponent('BlocksColumns'),
block_divider: resolveComponent('BlocksDivider'),
};
Expand Down
2 changes: 1 addition & 1 deletion types/blocks/block.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
2 changes: 1 addition & 1 deletion types/schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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[];
Expand Down

0 comments on commit b2fe927

Please sign in to comment.