- general fixes across the app
- minor fixes - code clean up and improvements
This commit is contained in:
@@ -2,6 +2,7 @@ import { Field, useFormikContext } from "formik";
|
||||
import { useOSDConfig } from "../hooks/useOSDConfig";
|
||||
import OSDFieldToggle from "./OSDFieldToggle";
|
||||
import type { OSDConfigFields } from "../../../types/types";
|
||||
import { toast } from "sonner";
|
||||
|
||||
type OSDFieldsProps = {
|
||||
isOSDLoading: boolean;
|
||||
@@ -15,7 +16,9 @@ const OSDFields = ({ isOSDLoading }: OSDFieldsProps) => {
|
||||
|
||||
const handleSubmit = async (values: OSDConfigFields) => {
|
||||
const result = await osdMutation.mutateAsync(values);
|
||||
console.log(result);
|
||||
if (result?.id) {
|
||||
toast.success("OSD Config updated successfully");
|
||||
}
|
||||
};
|
||||
|
||||
if (isOSDLoading) {
|
||||
|
||||
@@ -24,7 +24,7 @@ const OutputForms = () => {
|
||||
const includeCameraName = osdQuery?.data?.propIncludeCameraName?.value.toLowerCase() === "true";
|
||||
const overlayPosition = osdQuery?.data?.propOverlayPosition?.value;
|
||||
const OSDTimestampFormat = osdQuery?.data?.propTimestampFormat?.value;
|
||||
console.log(includeVRM);
|
||||
|
||||
const format = dispatcherQuery?.data?.propFormat?.value;
|
||||
const { optionalConstantsQuery, optionalConstantsMutation } = useOptionalConstants(format?.toLowerCase());
|
||||
const FFID = optionalConstantsQuery?.data?.propFeedIdentifier?.value;
|
||||
|
||||
Reference in New Issue
Block a user