feat(devices): add proper filter handling and update shadcn 🔨

This commit is contained in:
2025-06-26 18:42:48 +05:00
parent 6aea54884d
commit 59adaaf281
46 changed files with 9472 additions and 1055 deletions

View File

@ -5,11 +5,11 @@ import * as LabelPrimitive from "@radix-ui/react-label"
import { Slot } from "@radix-ui/react-slot"
import {
Controller,
ControllerProps,
FieldPath,
FieldValues,
FormProvider,
useFormContext,
type ControllerProps,
type FieldPath,
type FieldValues,
} from "react-hook-form"
import { cn } from "@/lib/utils"
@ -147,7 +147,7 @@ const FormMessage = React.forwardRef<
React.HTMLAttributes<HTMLParagraphElement>
>(({ className, children, ...props }, ref) => {
const { error, formMessageId } = useFormField()
const body = error ? String(error?.message) : children
const body = error ? String(error?.message ?? "") : children
if (!body) {
return null