From d40776bee42add4c4a41cf3589cb10a0731c911d Mon Sep 17 00:00:00 2001 From: JanProgrammierung Date: Mon, 23 Dec 2024 15:44:23 +0100 Subject: [PATCH] Added type to element, so ESLint and TS are satisfied. Signed-off-by: JanProgrammierung --- next-app/src/app/datasources/page.tsx | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/next-app/src/app/datasources/page.tsx b/next-app/src/app/datasources/page.tsx index ea2c3f4..746d9a1 100644 --- a/next-app/src/app/datasources/page.tsx +++ b/next-app/src/app/datasources/page.tsx @@ -83,11 +83,12 @@ export default function DataPage(): ReactElement { try { const response = await axios.get(dataSourcesURI); const tmpDataSourcesJSON = response.data - .filter( - (element: IDataSourcesDC) => - element.ddls.includes("Precision Medicine and Diagnostics") + .filter((element: IDataSourcesDC) => + element.ddls.includes("Precision Medicine and Diagnostics") ) - .filter((element) => element.name !== "SCAPIS database"); // Exclude "SCAPIS" + .filter( + (element: IDataSourcesDC) => element.name !== "SCAPIS database" + ); // Exclude "SCAPIS" setDataSourcesJSON(tmpDataSourcesJSON); } catch (error) { console.error("Error fetching data:", error);