Skip to content

Commit 04ba2d4

Browse files
Merge pull request #322 from jgbernalp/fix-schema-dropdown-values
COO-1368: fix: set correct text for viaq schema option
2 parents 56197e0 + bbc21ca commit 04ba2d4

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

web/src/components/schema-dropdown.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ export const SchemaDropdown: React.FC<SchemaDropdownProps> = ({ onSchemaSelected
5555
otel
5656
</SelectOption>
5757
<SelectOption key={'viaq'} value={Schema.viaq} isSelected={schema === Schema.viaq}>
58-
viaQ
58+
viaq
5959
</SelectOption>
6060
</SelectList>
6161
</Select>

web/src/parse-resources.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,12 @@ export const getOtelLabels = (): Record<ResourceLabel | 'Schema', string> => {
1919
} as Record<ResourceLabel | 'Schema', string>;
2020
};
2121

22-
export const getViaQLabels = (): Record<ResourceLabel | 'Schema', string> => {
23-
const otelMap = Object.fromEntries(
22+
export const getViaqLabels = (): Record<ResourceLabel | 'Schema', string> => {
23+
const viaqMap = Object.fromEntries(
2424
Object.entries(ResourceToStreamLabels).map(([key, value]) => [key, value.viaq]),
2525
);
2626
return {
27-
...otelMap,
27+
...viaqMap,
2828
Schema: Schema.viaq, // manually add Schema key
2929
} as Record<ResourceLabel | 'Schema', string>;
3030
};
@@ -33,7 +33,7 @@ export const getStreamLabelsFromSchema = (schema: Schema) => {
3333
if (schema == Schema.otel) {
3434
return getOtelLabels();
3535
}
36-
return getViaQLabels();
36+
return getViaqLabels();
3737
};
3838

3939
export const ResourceToStreamLabels: Record<ResourceLabel, { otel: string; viaq: string }> = {

0 commit comments

Comments
 (0)