mirror of
https://github.com/rowyio/rowy.git
synced 2025-12-29 00:16:39 +01:00
fix monaco row definition
This commit is contained in:
@@ -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") + ";";
|
||||
|
||||
|
||||
@@ -61,11 +61,11 @@ export default function Step4Body({
|
||||
extensionBody: isValid,
|
||||
});
|
||||
}}
|
||||
diagnosticsOptions={{
|
||||
noSemanticValidation: false,
|
||||
noSyntaxValidation: false,
|
||||
noSuggestionDiagnostics: true,
|
||||
}}
|
||||
// diagnosticsOptions={{
|
||||
// noSemanticValidation: false,
|
||||
// noSyntaxValidation: false,
|
||||
// noSuggestionDiagnostics: true,
|
||||
// }}
|
||||
onMount={() => setBodyEditorActive(true)}
|
||||
onUnmount={() => setBodyEditorActive(false)}
|
||||
/>
|
||||
|
||||
Reference in New Issue
Block a user