diff --git a/src/components/admin/ActionLogPanel.jsx b/src/components/admin/ActionLogPanel.jsx index b25481b..7f54bda 100644 --- a/src/components/admin/ActionLogPanel.jsx +++ b/src/components/admin/ActionLogPanel.jsx @@ -301,24 +301,31 @@ export const ActionLogPanel = ({ orderGroupId = null }) => { )} - {expandedId === log.id && ( + {expandedId === log.id && (() => { + const hasChange = log.old_value && log.new_value && log.old_value !== log.new_value; + const isDriverAction = log.action === "driver_assigned" || log.action === "driver_removed"; + const detailEntries = (log.details && typeof log.details === "object") + ? Object.entries(log.details).filter(([k]) => k !== "source" && k !== "driver_name" && k !== "driver_id") + : []; + return (