From 4272b614e254927ddbea2bce2762ca4128854522 Mon Sep 17 00:00:00 2001 From: Adria Navarro Date: Mon, 9 Sep 2024 09:58:43 +0200 Subject: [PATCH] Cleanup --- .../GridColumnConfiguration/getColumns.js | 17 ----------------- .../client/src/components/app/GridBlock.svelte | 1 - 2 files changed, 18 deletions(-) diff --git a/packages/builder/src/components/design/settings/controls/GridColumnConfiguration/getColumns.js b/packages/builder/src/components/design/settings/controls/GridColumnConfiguration/getColumns.js index 7380e40de0..f5ac106162 100644 --- a/packages/builder/src/components/design/settings/controls/GridColumnConfiguration/getColumns.js +++ b/packages/builder/src/components/design/settings/controls/GridColumnConfiguration/getColumns.js @@ -8,7 +8,6 @@ const modernize = columns => { label: column.displayName, field: column.name, active: true, - related: column.related, })) } @@ -75,20 +74,6 @@ const getDefault = (schema = {}) => { }, ] - if (column.columns) { - for (const relColumn of Object.keys(column.columns).filter( - relColumn => column.columns[relColumn].visible !== false - )) { - columns.push({ - label: `${relColumn} (${column.name})`, - field: `${column.name}.${relColumn}`, - active: false, - order, - related: { field: column.name, subField: relColumn }, - }) - } - } - return columns }) @@ -104,7 +89,6 @@ const toGridFormat = draggableListColumns => { active: entry.active, width: entry.width, conditions: entry.conditions, - related: entry.related, })) } @@ -121,7 +105,6 @@ const toDraggableListFormat = (gridFormatColumns, createComponent) => { columnType: column.columnType, width: column.width, conditions: column.conditions, - related: column.related, }, {} ) diff --git a/packages/client/src/components/app/GridBlock.svelte b/packages/client/src/components/app/GridBlock.svelte index 45aba66bab..30a35b0713 100644 --- a/packages/client/src/components/app/GridBlock.svelte +++ b/packages/client/src/components/app/GridBlock.svelte @@ -98,7 +98,6 @@ order: idx, conditions: column.conditions, visible: !!column.active, - related: column.related, } if (column.width) { overrides[column.field].width = column.width