From 192d0646e9f313631031f000063cfe2d1cb35825 Mon Sep 17 00:00:00 2001
From: rhenck <richard.henck@iqb.hu-berlin.de>
Date: Fri, 5 Jul 2024 15:25:34 +0200
Subject: [PATCH] Table: Add label back so that the InputElement-Props appear

---
 projects/common/models/elements/compound-elements/table/table.ts | 1 -
 .../src/app/components/dialogs/table-edit-dialog.component.ts    | 1 -
 2 files changed, 2 deletions(-)

diff --git a/projects/common/models/elements/compound-elements/table/table.ts b/projects/common/models/elements/compound-elements/table/table.ts
index 2f249fa1e..3b763324b 100644
--- a/projects/common/models/elements/compound-elements/table/table.ts
+++ b/projects/common/models/elements/compound-elements/table/table.ts
@@ -36,7 +36,6 @@ export class TableElement extends CompoundElement implements PositionedUIElement
           newElement.gridRow = el.gridRow; // add custom table element params
           newElement.gridColumn = el.gridColumn;
           if (el.type === 'text-field') {
-            delete newElement.label;
             delete newElement.appearance;
           }
           return newElement;
diff --git a/projects/editor/src/app/components/dialogs/table-edit-dialog.component.ts b/projects/editor/src/app/components/dialogs/table-edit-dialog.component.ts
index e4e75a9b9..f5ecd04e2 100644
--- a/projects/editor/src/app/components/dialogs/table-edit-dialog.component.ts
+++ b/projects/editor/src/app/components/dialogs/table-edit-dialog.component.ts
@@ -68,7 +68,6 @@ export class TableEditDialogComponent {
     newEle.gridRow = el.row + 1;
     newEle.gridColumn = el.col + 1;
     if (newEle.type === 'text-field') {
-      delete newEle.label;
       delete newEle.appearance;
     }
     this.newTable.elements.push(newEle);
-- 
GitLab