Skip to content

Commit

Permalink
Removes AVRO from Publish message form fixes #1182
Browse files Browse the repository at this point in the history
  • Loading branch information
jvorcak committed Mar 20, 2024
1 parent 2697fb6 commit ac60863
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions frontend/src/components/pages/topics/Topic.Produce.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ import { PublishMessagePayloadOptions, PublishMessageRequest } from '../../../pr
import { uiSettings } from '../../../state/ui';
import { appGlobal } from '../../../state/appGlobal';
import { base64ToUInt8Array, isValidBase64, substringWithEllipsis } from '../../../utils/utils';
import { isEmbedded } from '../../../config';

type EncodingOption = {
value: PayloadEncoding | 'base64',
Expand Down Expand Up @@ -260,9 +259,7 @@ const PublishTopicForm: FC<{ topicName: string }> = observer(({ topicName }) =>
}
};

const filteredEncodingOptions = isEmbedded()
? encodingOptions.filter(x => x.value != PayloadEncoding.AVRO)
: encodingOptions;
const filteredEncodingOptions = encodingOptions.filter(x => x.value != PayloadEncoding.AVRO);

return (
<form onSubmit={handleSubmit(onSubmit)}>
Expand Down

0 comments on commit ac60863

Please sign in to comment.