Skip to content

Commit 4f1197c

Browse files
anaisbergSimonClo
authored andcommitted
✨ hide id table
1 parent 3fd734f commit 4f1197c

File tree

1 file changed

+2
-1
lines changed
  • src/frontend/apps/impress/src/features/docs/doc-editor/components/custom-blocks/DatabaseBlock

1 file changed

+2
-1
lines changed

src/frontend/apps/impress/src/features/docs/doc-editor/components/custom-blocks/DatabaseBlock/DatabaseGrid.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ export const DatabaseGrid = ({
4040

4141
useEffect(() => {
4242
const filteredEntries = Object.entries(tableData).filter(
43-
([key]) => key !== 'id' && key !== 'manualSort',
43+
([key]) => key !== 'manualSort',
4444
);
4545

4646
const rowData1: DatabaseRow[] = [];
@@ -61,6 +61,7 @@ export const DatabaseGrid = ({
6161

6262
const columns: ColDef[] = columnNames.map((key) => ({
6363
field: key,
64+
hide: key === 'id',
6465
colSpan: (params: ColSpanParams<Record<string, string>, unknown>) =>
6566
newRowColSpan(params, columnNames.length + 1),
6667
cellRendererSelector: (

0 commit comments

Comments
 (0)