fix monaco row definition

This commit is contained in:
shamsmosowi
2021-11-04 12:48:49 +11:00
parent f10eb6e65a
commit 4a8122c88c
2 changed files with 9 additions and 6 deletions

View File

@@ -110,7 +110,10 @@ export default function useMonacoCustomizations({
Object.keys(tableState?.columns!)
.map((columnKey: string) => {
const column = tableState?.columns[columnKey];
return `static ${columnKey}: ${getFieldProp("type", column.type)}`;
return `static "${columnKey}": ${getFieldProp(
"dataType",
column.type
)}`;
})
.join(";\n") + ";";