Try if 'data' es really needed as it is not used in PartDataTable.php

This commit is contained in:
Marc Kreidler 2026-04-03 22:42:14 +02:00
parent c42c989831
commit 1bb943d5ce

View file

@ -152,7 +152,6 @@ class ProjectBomEntriesDataTable implements DataTableTypeInterface
->add('manufacturing_status', EnumColumn::class, [ ->add('manufacturing_status', EnumColumn::class, [
'label' => $this->translator->trans('part.table.manufacturingStatus'), 'label' => $this->translator->trans('part.table.manufacturingStatus'),
'data' => static fn(ProjectBOMEntry $context): ?ManufacturingStatus => $context->getPart()?->getManufacturingStatus(),
'class' => ManufacturingStatus::class, 'class' => ManufacturingStatus::class,
'render' => function (?ManufacturingStatus $status, ProjectBOMEntry $context): string { 'render' => function (?ManufacturingStatus $status, ProjectBOMEntry $context): string {
if ($status === null) { if ($status === null) {