From 7644ea5c6b36309edad3d61345af91c653ae765d Mon Sep 17 00:00:00 2001 From: PhatPhuckDave Date: Tue, 8 Jul 2025 19:20:53 +0200 Subject: [PATCH] Make shit EDITABLE DAMN IT --- src/components/JobCardDetails.tsx | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/components/JobCardDetails.tsx b/src/components/JobCardDetails.tsx index 9b76f67..20f8bcc 100644 --- a/src/components/JobCardDetails.tsx +++ b/src/components/JobCardDetails.tsx @@ -92,10 +92,9 @@ const JobCardDetails: React.FC = ({ job }) => { const handleClick = (fieldName: string, value: string | null, e: React.MouseEvent) => { e.stopPropagation(); - if (value) { - setEditingField(fieldName); - setTempValues({ ...tempValues, [fieldName]: formatDateForInput(value) }); - } + // Allow editing regardless of whether value exists or not + setEditingField(fieldName); + setTempValues({ ...tempValues, [fieldName]: formatDateForInput(value) }); }; const DateField = ({ label, value, fieldName, icon }: { label: string; value: string | null; fieldName: string; icon: React.ReactNode }) => (