- finally fixed custom imput to match what is on backend on sighting amend endpoint
This commit is contained in:
@@ -5,11 +5,7 @@ import ChannelFields from "./ChannelFields";
|
||||
import type { FormTypes } from "../../../types/types";
|
||||
import { useGetBearerConfig } from "../hooks/useBearer";
|
||||
|
||||
type ChannelCardProps = {
|
||||
customFields: (string | undefined)[];
|
||||
};
|
||||
|
||||
const ChannelCard = ({ customFields }: ChannelCardProps) => {
|
||||
const ChannelCard = () => {
|
||||
const { values, errors, touched, setFieldValue } = useFormikContext<FormTypes>();
|
||||
const { bearerQuery } = useGetBearerConfig(values?.format?.toLowerCase() || "json");
|
||||
const outputData = bearerQuery?.data;
|
||||
@@ -22,7 +18,6 @@ const ChannelCard = ({ customFields }: ChannelCardProps) => {
|
||||
values={values}
|
||||
outputData={outputData}
|
||||
onSetFieldValue={setFieldValue}
|
||||
customFields={customFields}
|
||||
/>
|
||||
<button
|
||||
type="submit"
|
||||
|
||||
Reference in New Issue
Block a user