File tree Expand file tree Collapse file tree 2 files changed +10
-3
lines changed
frontend/src/components/Topics/Topic/Messages/MessageContent Expand file tree Collapse file tree 2 files changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ import React from 'react';
33import * as S from './MessageContent.styled' ;
44
55export interface AvroMetadataProps {
6- deserializeProperties ?: { [ key : string ] : any | undefined } ;
6+ deserializeProperties ?: { [ key : string ] : unknown | undefined } ;
77}
88
99const AvroMetadata : React . FC < AvroMetadataProps > = ( {
@@ -18,6 +18,13 @@ const AvroMetadata: React.FC<AvroMetadataProps> = ({
1818 return null ;
1919 }
2020
21+ if (
22+ typeof deserializeProperties . name !== 'string' ||
23+ typeof deserializeProperties . schemaId !== 'number'
24+ ) {
25+ return null ;
26+ }
27+
2128 return (
2229 < S . Metadata >
2330 < S . MetadataLabel > Value Type</ S . MetadataLabel >
Original file line number Diff line number Diff line change @@ -19,8 +19,8 @@ export interface MessageContentProps {
1919 contentSize ?: number ;
2020 keySerde ?: string ;
2121 valueSerde ?: string ;
22- keyDeserializeProperties ?: { [ key : string ] : any | undefined } ;
23- valueDeserializeProperties ?: { [ key : string ] : any | undefined } ;
22+ keyDeserializeProperties ?: { [ key : string ] : unknown | undefined } ;
23+ valueDeserializeProperties ?: { [ key : string ] : unknown | undefined } ;
2424}
2525
2626const MessageContent : React . FC < MessageContentProps > = ( {
You can’t perform that action at this time.
0 commit comments