Skip to content

Commit

Permalink
Update src/components/admin/AddContent.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
devsargam authored Dec 1, 2024
1 parent 7c912a9 commit 2cb4c31
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/components/admin/AddContent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -72,12 +72,12 @@ export const AddContent = ({
if (type === "appx") {
//@ts-ignore
metadata.appxVideoJSON = formatInputJSON(metadata.appxVideoJSON);
}
//@ts-ignore
if (!validateJSON(metadata.appxVideoJSON)) {
toast.error("Invalid JSON");
setLoading(false);
return;
//@ts-ignore
if (!validateJSON(metadata.appxVideoJSON)) {
toast.error("Invalid JSON");
setLoading(false);
return;
}
}
const response = await fetch('/api/admin/content', {
body: JSON.stringify({
Expand Down

0 comments on commit 2cb4c31

Please sign in to comment.