Skip to content

Commit bbe9406

Browse files
committed
Remove unnecessary reportId prop from ActionButtons in ReportDetailPage
1 parent da8d316 commit bbe9406

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

frontend/src/pages/Reports/ReportDetailPage.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,8 +154,7 @@ const ReportDetailPage: React.FC = () => {
154154
<ActionButtons
155155
onDiscard={handleDiscard}
156156
onNewUpload={handleNewUpload}
157-
reportTitle={reportData.title || reportData.category}
158-
reportId={reportId}
157+
reportTitle={reportData.title}
159158
/>
160159
</IonContent>
161160
</IonPage>

frontend/src/pages/Reports/components/ActionButtons.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ interface ActionButtonsProps {
1212
const ActionButtons: React.FC<ActionButtonsProps> = ({
1313
onDiscard,
1414
onNewUpload,
15-
reportTitle = '',
15+
reportTitle,
1616
}) => {
1717
const { t } = useTranslation();
1818
const [showConfirmDiscard, setShowConfirmDiscard] = useState(false);

0 commit comments

Comments
 (0)