Skip to content

Commit

Permalink
Added type to element, so ESLint and TS are satisfied.
Browse files Browse the repository at this point in the history
Signed-off-by: JanProgrammierung <[email protected]>
  • Loading branch information
JanProgrammierung committed Dec 23, 2024
1 parent a08cb8f commit d40776b
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions next-app/src/app/datasources/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit d40776b

Please sign in to comment.