Skip to content

Commit d61eaa4

Browse files
fix(Schema): display NotNull columns
1 parent 98c8976 commit d61eaa4

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/containers/Tenant/Schema/SchemaViewer/SchemaViewer.js

+12
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ const SchemaViewerColumns = {
1616
name: 'Name',
1717
key: 'Key',
1818
type: 'Type',
19+
notNull: 'NotNull',
1920
};
2021

2122
class SchemaViewer extends React.Component {
@@ -59,6 +60,17 @@ class SchemaViewer extends React.Component {
5960
name: SchemaViewerColumns.type,
6061
width: 100,
6162
},
63+
{
64+
name: SchemaViewerColumns.notNull,
65+
width: 100,
66+
render: ({row}) => {
67+
if (row.NotNull) {
68+
return '\u2713';
69+
}
70+
71+
return undefined;
72+
},
73+
},
6274
];
6375

6476
const tableData = [...keyColumns, ...restColumns];

0 commit comments

Comments
 (0)