Skip to content

Commit

Permalink
chore: fix code smells
Browse files Browse the repository at this point in the history
  • Loading branch information
Shurtu-gal committed Sep 28, 2024
1 parent 3ef96e1 commit 40d1058
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion apps/studio/scripts/template-parameters.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ function serializeParam(configParam: TemplateParameter): JSONSchema7 {
}

function serializeTemplateParameters(config: TemplateConfig): JSONSchema7 | undefined {
if (!config || !config.parameters) {
if (!config?.parameters) {
return;
}

Expand Down
8 changes: 8 additions & 0 deletions apps/studio/src/components/Terminal/ProblemsTab.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -280,6 +280,14 @@ export const ProblemsTabContent: FunctionComponent<ProblemsTabProps> = () => {
range.start.character + 1,
)
}
onKeyDown={(e) => {
if (e.key === 'Enter') {
navigationSvc.scrollToEditorLine(
range.start.line + 1,
range.start.character + 1,
);
}
}}
>
{range.start.line + 1}:{range.start.character + 1}
</td>
Expand Down

0 comments on commit 40d1058

Please sign in to comment.