From c83611c178ebd7cd72813af07e3d1a668ecaafca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sedat=20=C3=96ZT=C3=9CRK?= <76204082+iamsedatozturk@users.noreply.github.com> Date: Wed, 7 Jan 2026 09:12:55 +0300 Subject: [PATCH] =?UTF-8?q?Reportviewer=20hatas=C4=B1=20d=C3=BCzenlemesi?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ui/src/views/report/DevexpressReportDesigner.tsx | 10 +++++++--- ui/src/views/report/DevexpressReportViewer.tsx | 10 +++++++--- 2 files changed, 14 insertions(+), 6 deletions(-) diff --git a/ui/src/views/report/DevexpressReportDesigner.tsx b/ui/src/views/report/DevexpressReportDesigner.tsx index 06c20630..72293597 100644 --- a/ui/src/views/report/DevexpressReportDesigner.tsx +++ b/ui/src/views/report/DevexpressReportDesigner.tsx @@ -12,8 +12,12 @@ import { useParams } from 'react-router-dom' const DevexpressReportDesigner: React.FC = () => { const { translate } = useLocalization() - const params = useParams() + const { id } = useParams<{ id: string }>() + if (!id) { + return null + } + return ( { defaultTitle="Erp Platform" > - + diff --git a/ui/src/views/report/DevexpressReportViewer.tsx b/ui/src/views/report/DevexpressReportViewer.tsx index 0b281ea7..b7f8b465 100644 --- a/ui/src/views/report/DevexpressReportViewer.tsx +++ b/ui/src/views/report/DevexpressReportViewer.tsx @@ -11,7 +11,11 @@ import { useParams } from 'react-router-dom' const DevexpressReportViewer: React.FC = () => { const { translate } = useLocalization() - const params = useParams() + const { id } = useParams<{ id: string }>() + + if (!id) { + return null + } return ( @@ -21,8 +25,8 @@ const DevexpressReportViewer: React.FC = () => { defaultTitle="Erp Platform" > - - + + )