Failed to build
Problemes amb un atribut al generar CatalogForm
Execució:
=> [ggent 6/10] RUN git clone https://git.coopdevs.org/codeccoop/femprocomuns/oficina-virtual/nextoffice-fpc.git /app 4.3s
=> [ggent 7/10] COPY .env.docker .env 0.5s
=> [ggent 8/10] RUN npm i 44.7s
=> ERROR [ggent 9/10] RUN npm run build
Error:
90.52 Failed to compile.
90.52
90.52 ./src/app/[lng]/private/contracts/catalog/Form.tsx:14:12
90.52 Type error: Property 'id' does not exist on type 'Company | null'.
90.52
90.52 12 | export default function CatalogForm({ services }: FormProps) {
90.52 13 | const { t } = useI18n();
90.52 > 14 | const [{ id: companyId }] = useCompany();
90.52 | ^
90.52 15 | const onSubmit = async (formData: FormData) => {