Skip to content

Commit

Permalink
Merge pull request #45 from FRC2713/Fix-editor-save-button
Browse files Browse the repository at this point in the history
Fix editor save button
  • Loading branch information
Owen-Morgan825 authored Oct 29, 2024
2 parents f26d211 + 2f29a0b commit ad3fe3c
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 @@ -37,7 +37,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 ad3fe3c

Please sign in to comment.