Fix: Resolve type incompatibility in company person_type

This commit is contained in:
gpt-engineer-app[bot]
2025-10-16 13:50:25 +00:00
parent 4efdeaa104
commit 95679c1067
6 changed files with 21 additions and 17 deletions

View File

@@ -9,7 +9,7 @@ import { Card, CardContent } from '@/components/ui/card';
import { Tabs, TabsContent, TabsList, TabsTrigger } from '@/components/ui/tabs';
import { Dialog, DialogContent } from '@/components/ui/dialog';
import { ArrowLeft, MapPin, Star, Globe, Calendar, Edit, Building2, Gauge } from 'lucide-react';
import { Company } from '@/types/database';
import { Company, Park } from '@/types/database';
import { supabase } from '@/integrations/supabase/client';
import { PropertyOwnerForm } from '@/components/admin/PropertyOwnerForm';
import { PropertyOwnerPhotoGallery } from '@/components/companies/PropertyOwnerPhotoGallery';
@@ -427,9 +427,9 @@ export default function PropertyOwnerDetail() {
name: owner.name,
slug: owner.slug,
description: owner.description,
company_type: 'property_owner',
person_type: owner.person_type,
website_url: owner.website_url,
company_type: 'property_owner',
person_type: (owner.person_type || 'company') as 'company' | 'individual' | 'firm' | 'organization',
website_url: owner.website_url,
founded_year: owner.founded_year,
headquarters_location: owner.headquarters_location,
banner_image_url: owner.banner_image_url,