Skip to content

Commit

Permalink
chore: remove unnecessary eslint disable
Browse files Browse the repository at this point in the history
  • Loading branch information
dcshzj committed Jul 29, 2024
1 parent 0950c12 commit 5cacd43
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import type { Static } from "@sinclair/typebox"
import { Box, Heading, HStack, Icon, IconButton } from "@chakra-ui/react"
import { Button } from "@opengovsg/design-system-react"
import { getLayoutMetadataSchema } from "@opengovsg/isomer-components"
import { type TSchema } from "@sinclair/typebox"
import Ajv from "ajv"
import { BiDollar, BiX } from "react-icons/bi"

Expand All @@ -25,10 +24,7 @@ export default function MetadataEditorStateDrawer(): JSX.Element {
return <></>
}

// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-unsafe-call
const metadataSchema: TSchema = getLayoutMetadataSchema(
previewPageState.layout,
)
const metadataSchema = getLayoutMetadataSchema(previewPageState.layout)
const validateFn = ajv.compile<Static<typeof metadataSchema>>(metadataSchema)

const handleChange = (data: unknown) => {
Expand Down

0 comments on commit 5cacd43

Please sign in to comment.