Skip to content

Commit b7a58de

Browse files
committed
♻️ Rename blocks
1 parent 468eca3 commit b7a58de

File tree

2 files changed

+15
-8
lines changed

2 files changed

+15
-8
lines changed

src/api/landing-thematique/content-types/landing-thematique/lifecycles.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,14 @@ const computedFieldsHook = async (event: Event) => {
7373
console.log('LandingThematique data keys:', Object.keys(landingThematique))
7474

7575
// Traitement des blocs individuels
76-
const blockFields = ['bloc1', 'bloc2', 'bloc3', 'bloc5', 'bloc6', 'bloc7']
76+
const blockFields = [
77+
'block1',
78+
'block2',
79+
'block3',
80+
'block5',
81+
'block6',
82+
'block7',
83+
]
7784

7885
for (const fieldName of blockFields) {
7986
console.log(`Processing field: ${fieldName}`)

src/api/landing-thematique/content-types/landing-thematique/schema.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
"type": "string",
3030
"required": true
3131
},
32-
"bloc1": {
32+
"block1": {
3333
"type": "component",
3434
"repeatable": false,
3535
"pluginOptions": {
@@ -39,7 +39,7 @@
3939
},
4040
"component": "blocks.block-with-image"
4141
},
42-
"bloc2": {
42+
"block2": {
4343
"type": "component",
4444
"repeatable": false,
4545
"pluginOptions": {
@@ -49,7 +49,7 @@
4949
},
5050
"component": "blocks.block-with-image"
5151
},
52-
"bloc3": {
52+
"block3": {
5353
"type": "component",
5454
"repeatable": false,
5555
"pluginOptions": {
@@ -59,7 +59,7 @@
5959
},
6060
"component": "blocks.block-with-image"
6161
},
62-
"bloc4": {
62+
"block4": {
6363
"type": "component",
6464
"repeatable": true,
6565
"pluginOptions": {
@@ -72,7 +72,7 @@
7272
"min": 3,
7373
"max": 5
7474
},
75-
"bloc5": {
75+
"block5": {
7676
"type": "component",
7777
"repeatable": false,
7878
"pluginOptions": {
@@ -82,7 +82,7 @@
8282
},
8383
"component": "blocks.block-with-image"
8484
},
85-
"bloc6": {
85+
"block6": {
8686
"type": "component",
8787
"repeatable": false,
8888
"pluginOptions": {
@@ -114,7 +114,7 @@
114114
},
115115
"type": "string"
116116
},
117-
"bloc7": {
117+
"block7": {
118118
"type": "component",
119119
"repeatable": false,
120120
"pluginOptions": {

0 commit comments

Comments
 (0)