Skip to content

Commit

Permalink
Fix editor save button
Browse files Browse the repository at this point in the history
  • Loading branch information
Logan4413 committed Oct 29, 2024
1 parent f21e17c commit 8b1d397
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/ConfigEditor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@ export function ConfigEditor(props: ConfigEditorProps) {
defaultValue={JSON.stringify(config, null, 2)}
theme="vs-dark"
onValidate={markers => {
setErrorCount(markers.length);
const severeErrors = markers.filter(m => m.severity > 4);
setErrorCount(severeErrors.length);
}}
onChange={value => value && setCurrentConfigText(value)}
/>
Expand Down

0 comments on commit 8b1d397

Please sign in to comment.